/* Surgical Tech Study App - Category Color Scheme Styles */

/* Custom font and base styling */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Smooth transitions for interactive elements */
.transition-all {
    transition: all 0.2s ease-in-out;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Category color classes for easy application */
.color-anatomy { background-color: #E85D75; }
.color-microbiology { background-color: #4CAF82; }
.color-pharmacology { background-color: #4A9FE8; }
.color-sterilization { background-color: #8B7BC7; }
.color-cardiovascular { background-color: #E85D6B; }
.color-general { background-color: #6B7280; }
.color-genitourinary { background-color: #F5B947; }
.color-neurology { background-color: #5A7C99; }
.color-ophthalmic { background-color: #FF9F5A; }
.color-orthopedic { background-color: #5BA3D4; }
.color-otorhinolaryngology { background-color: #64B5F6; }
.color-peripheral { background-color: #F08C84; }
.color-plastics { background-color: #EDAD5C; }
.color-obstetrics { background-color: #E88A8A; }
.color-preoperative { background-color: #52C9B0; }
.color-postoperative { background-color: #F4D03F; }
.color-professional { background-color: #B591D6; }

/* Category card styling */
.category-card {
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: currentColor;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
    font-weight: 600;
}

.category-title {
    font-weight: 600;
    font-size: 1.1em;
    color: #1f2937;
}

.category-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.info-item {
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.info-label {
    font-size: 0.75em;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 0.9em;
    color: #374151;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

/* Badge styling */
.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 2px;
    transition: all 0.2s ease;
}

.category-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Progress bar styling */
.progress-container {
    margin-bottom: 16px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.progress-category {
    font-weight: 500;
    color: #374151;
    font-size: 0.9em;
}

.progress-percentage {
    font-size: 0.8em;
    color: #6b7280;
    font-weight: 500;
}

.progress-track {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%);
    background-size: 16px 16px;
    animation: progress-stripes 1s linear infinite;
}

@keyframes progress-stripes {
    0% { background-position: 0 0; }
    100% { background-position: 16px 0; }
}

/* Mini card styling */
.mini-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.mini-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mini-card-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.mini-card-content {
    color: #6b7280;
    font-size: 0.85em;
    line-height: 1.4;
}

/* Table styling improvements */
.reference-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-info {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        padding: 16px;
    }
    
    .category-badge {
        font-size: 0.7em;
        padding: 4px 8px;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Utility classes */
.text-shadow {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.border-gradient {
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #e2e8f0, #cbd5e1) border-box;
    border: 2px solid transparent;
}

