/* Client Dashboard Styles */

.section-client-dashboard {
    background: transparent;
}

/* Grid Layout - Fix for responsive grid */
.tw-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 1200px) {
    .tw-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.875rem;
    }
}

@media (max-width: 768px) {
    .tw-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .tw-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* Service Card Styles */
.service-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.service-card.active {
    cursor: pointer;
}

.service-card.active:hover {
    background: white;
    border-color: #d1d5db;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.service-card.disabled {
    opacity: 0.6;
    background: #f9fafb;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

.service-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0.75rem;
    text-decoration: none;
    color: inherit;
    min-height: 140px;
    transition: all 0.3s ease;
    gap: 0.75rem;
}

.service-card.active .service-card-link {
    color: #1f2937;
}

.service-card.disabled .service-card-link {
    color: #9ca3af;
}

.service-card.active:hover .service-card-link {
    color: #0066cc;
}

.service-card-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-card.active .service-card-icon {
    background: #eff6ff;
    color: #0066cc;
}

.service-card.disabled .service-card-icon {
    background: #e5e7eb;
    color: #9ca3af;
}

.service-card.active:hover .service-card-icon {
    background: #0066cc;
    color: white;
    transform: scale(1.1);
}

.service-card-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.service-card-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.service-card-description {
    font-size: 0.875rem;
    margin: 0.5rem 0 0 0;
    opacity: 0.7;
    line-height: 1.5;
}

.service-card.disabled .service-card-description {
    opacity: 0.5;
}

.service-card-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-card.active:hover .service-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.service-card.disabled .service-card-arrow {
    display: none;
}

.service-card-arrow svg {
    width: 20px;
    height: 20px;
    color: currentColor;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card-link {
        padding: 1rem 0.75rem;
        min-height: 130px;
    }

    .service-card-icon {
        width: 45px;
        height: 45px;
    }

    .service-card-icon svg {
        width: 24px;
        height: 24px;
    }

    .service-card-title {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .service-card {
        border-radius: 8px;
    }

    .service-card-link {
        padding: 1rem 0.75rem;
        min-height: 120px;
    }

    .service-card-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
    }

    .service-card-icon svg {
        width: 22px;
        height: 22px;
    }

    .service-card-title {
        font-size: 0.8125rem;
    }
}

/* Animation for greeting */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#greeting {
    animation: slideInDown 0.5s ease-out;
}

/* Tailwind utilities */
.tw-mb-3 {
    margin-bottom: 0.75rem;
}

.tw-mb-8 {
    margin-bottom: 2rem;
}

.tw-mb-10 {
    margin-bottom: 2.5rem;
}

.tw-mt-7 {
    margin-top: 1.75rem;
}

.tw-mt-10 {
    margin-top: 2.5rem;
}

.tw-mb-0 {
    margin-bottom: 0;
}

.tw-font-semibold {
    font-weight: 600;
}

.tw-text-neutral-700 {
    color: #404040;
}

.tw-font-medium {
    font-weight: 500;
}

.tw-text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.tw-text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.tw-mt-0 {
    margin-top: 0;
}

.tw-gap-6 {
    gap: 1.5rem;
}
