body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
}

h1.display-4 {
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.5px;
    font-size: 2.5rem;
}

img {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.lead {
    color: #4a5568;
    font-weight: 400;
    font-size: 1.125rem;
}

.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e0;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    color: #1a202c;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-text {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.9375rem;
    flex-grow: 1;
}

.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #4299e1;
    color: white;
}

.badge.bg-primary {
    background-color: #4299e1 !important;
}

#generateBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
    position: relative;
}

#generateBtn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #7c8ff0 0%, #8a5fb8 100%);
}

#generateBtn:active:not(:disabled) {
    transform: translateY(0);
}

#generateBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#categorySelect {
    border-radius: 8px;
    border: 1px solid #cbd5e0;
    background: #ffffff;
    padding: 0.75rem 1rem;
    font-weight: 500;
    font-size: 1rem;
    color: #2d3748;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#categorySelect:hover {
    border-color: #a0aec0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

#categorySelect:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.delete-btn {
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.delete-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.card-footer {
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    padding: 0.875rem 1.5rem;
}

.card-footer small {
    color: #718096;
    font-size: 0.8125rem;
}

.alert-info {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 8px;
    color: #2c5282;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.alert-info p {
    margin: 0;
    font-size: 0.9375rem;
}

.form-label {
    color: #2d3748;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1.5rem !important;
}

.mb-4 {
    margin-bottom: 2rem !important;
}

/* Subtle fade-in animation for cards */
.col-md-6.col-lg-4 {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.col-md-6.col-lg-4:nth-child(1) { animation-delay: 0.05s; }
.col-md-6.col-lg-4:nth-child(2) { animation-delay: 0.1s; }
.col-md-6.col-lg-4:nth-child(3) { animation-delay: 0.15s; }
.col-md-6.col-lg-4:nth-child(4) { animation-delay: 0.2s; }
.col-md-6.col-lg-4:nth-child(5) { animation-delay: 0.25s; }
.col-md-6.col-lg-4:nth-child(6) { animation-delay: 0.3s; }
.col-md-6.col-lg-4:nth-child(n+7) { animation-delay: 0.35s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    h1.display-4 {
        font-size: 1.75rem;
    }

    .lead {
        font-size: 1rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    img {
        height: 60px !important;
        width: 60px !important;
    }

    .row.align-items-center {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .row.align-items-center .col-auto {
        margin-bottom: 0.5rem;
    }
}
