/* Workspaces block grid */
.wks-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

/* Individual card */
.wks-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0.75rem;
    overflow: hidden;
    width: 220px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.wks-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Group image 
.wks-card img,
.wks-card span.grpimg { 
    width: 50px;
    height: 50px;
    object-fit: cover;
    display: block;
}
*/

/* Group image */
.wks-card img
    width: 50px;
    height: 50px;
    /*object-fit: cover;*/
    
}


/* Card content */
.wks-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.5rem;
}

.wks-card-desc {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0.5rem 0.5rem 0.5rem;
    flex-grow: 1;
}

/* Action buttons */
.wks-card-actions {
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.wks-card-actions .btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
}

/* Block description below block title */
.wks-block-description {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.8rem;
}

/* Section title (same pattern as eDash) 
.section-title {
    text-align: center;
    margin-bottom: 2rem;
}
*/
.section-title h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-title p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.2rem;
}

/* Constrain Workspaces block width like other eDash blocks */
.block_workspaces .wks-grid,
.block_workspaces .section-title {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.workspaces-area .container {
    max-width: 76%; /* override eDash container */
}

/* Fallback icon smaller + light blue tint */
.wks-card-img.fallback-icon {
    width: 60px;
    height: auto;
    opacity: 0.8;
    filter: hue-rotate(180deg) saturate(3) brightness(1.2); /* light blue */
    display: block;
    margin: 0 auto 1rem;
}



/* Grid wrapper */
.wks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    max-width: 80%;       /* match eDash blocks */
    margin: 0 auto;       /* center the block */
    padding: 20px 0;
}

/* Individual cards */
.wks-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wks-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

/* Titles */
.wks-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 10px 0;
}

/* Descriptions */
.wks-card-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
}

/* Buttons */
.wks-card-actions .btn {
    margin: 3px;
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.section.block_workspaces {
    margin-top: 40px !important;
}

/* Allow 4 cards per row on wide screens */
.workspaces-area .wks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* smaller min */
    gap: 20px;
}	


/* ======================================================================================================================= */


/* Drawer */
.wks-drawer {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    max-height: 80%;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 30px;
    overflow-y: auto;
    transition: bottom 0.4s ease-in-out;
    z-index: 998;
}

.wks-drawer.active {
    bottom: 0;
}

.wks-close {
    margin-top: 20px;
    display: block;
    width: 100%;
}


.wks-drawer-btn {
    border-radius: 50px;
    padding: 12px 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: inline-block;
	margin:8px;
}


/* Floating button */
.wks-floating-btn {
    position: fixed;
	width: fit-content;
    bottom: 25px;
    left: 20px;
    z-index: 999;
    border-radius: 50px;
    padding: 12px 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
