/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: #ffd700;
}

.logo h1 {
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Security Banner */
.security-banner {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.security-banner h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.5rem;
}

.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.2s;
}

.security-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.security-item i {
    font-size: 1.5rem;
    color: #27ae60;
}

.security-item span {
    font-weight: 600;
    color: #2c3e50;
}

/* Navigation */
.navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.nav-btn.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.nav-btn i {
    font-size: 1.2rem;
}

/* Main Content */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    min-height: 600px;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-description {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.metric-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
    border-left: 5px solid #3498db;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.metric-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.metric-content {
    flex: 1;
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.metric-suffix {
    font-size: 1.5rem;
    color: #7f8c8d;
}

.metric-label {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Activity Section */
.activity-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
}

.activity-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.no-activity {
    text-align: center;
    color: #7f8c8d;
    padding: 40px 20px;
}

.no-activity i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.activity-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #3498db;
    transition: transform 0.2s;
}

.activity-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.activity-time {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.activity-description {
    color: #2c3e50;
    font-weight: 500;
}

/* Chat Interface */
.quick-suggestions {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.quick-suggestions h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.suggestion-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.suggestion-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 500;
}

.suggestion-btn:hover {
    border-color: #3498db;
    background: #e8f4f8;
    transform: translateY(-2px);
}

.suggestion-btn i {
    color: #3498db;
    font-size: 1rem;
}

.chat-interface {
    background: #f8f9fa;
    border-radius: 15px;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 420px;
}

.message {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    animation: slideIn 0.3s ease;
    position: relative;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #27ae60, #219a52);
    order: 2;
}

.user-message {
    flex-direction: row-reverse;
}

.message-content {
    background: white;
    padding: 15px 20px;
    border-radius: 18px;
    max-width: 80%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    line-height: 1.6;
}

.user-message .message-content {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.message-timestamp {
    position: absolute;
    bottom: -20px;
    font-size: 0.7rem;
    color: #7f8c8d;
    opacity: 0;
    transition: opacity 0.3s;
}

.message:hover .message-timestamp {
    opacity: 1;
}

.user-message .message-timestamp {
    right: 0;
}

.assistant-message .message-timestamp {
    left: 55px;
}

/* Typing Animation */
.typing-animation {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #3498db;
    animation: typingDots 1.4s infinite;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDots {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    30% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.typing-indicator .message-content {
    display: flex;
    align-items: center;
    background: #f8f9fa !important;
    color: #2c3e50 !important;
    border: 2px dashed #dee2e6;
}

.chat-input-container {
    padding: 20px;
    background: white;
    border-radius: 0 0 15px 15px;
    display: flex;
    gap: 15px;
}

#chatInput {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

#chatInput:focus {
    border-color: #3498db;
}

.send-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:hover {
    transform: scale(1.1);
}

/* Search Interface */
.search-interface {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
}

.search-form {
    margin-bottom: 30px;
}

.search-input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

#searchInput {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

#searchInput:focus {
    border-color: #3498db;
}

.search-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.search-filters select {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s;
}

.search-filters select:focus {
    border-color: #3498db;
}

.search-results {
    min-height: 300px;
    background: white;
    border-radius: 10px;
    padding: 20px;
}

.no-results {
    text-align: center;
    color: #7f8c8d;
    padding: 60px 20px;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.search-result-item {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.result-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.result-court {
    color: #3498db;
    font-weight: 500;
    margin-bottom: 5px;
}

.result-date {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.result-summary {
    color: #555;
    line-height: 1.6;
}

/* Analysis Interface */
.analysis-interface {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.upload-area {
    background: #f8f9fa;
    border: 3px dashed #dee2e6;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #3498db;
    background: #e8f4f8;
}

.upload-area.dragover {
    border-color: #27ae60;
    background: #e8f5e8;
}

.upload-icon {
    font-size: 4rem;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.upload-area h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.upload-area p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

#fileInput {
    display: none;
}

.upload-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 25px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
}

.upload-btn:hover {
    transform: translateY(-2px);
}

.analysis-options {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
}

.analysis-options h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.option-group {
    margin-bottom: 25px;
}

.option-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.option-group label:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.option-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.analysis-btn {
    background: linear-gradient(135deg, #27ae60, #219a52);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.analysis-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.analysis-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.analysis-results {
    grid-column: 1 / -1;
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.uploaded-files {
    margin-top: 20px;
}

.file-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.file-item i {
    font-size: 1.5rem;
    color: #e74c3c;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #2c3e50;
}

.file-size {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.file-actions {
    display: flex;
    gap: 10px;
}

.file-actions button {
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: color 0.2s;
}

.file-actions button:hover {
    color: #e74c3c;
    background: #f8f9fa;
}

/* Library Interface */
.library-interface {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
}

.library-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-library {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

#librarySearch {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

#librarySearch:focus {
    border-color: #3498db;
}

.library-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.library-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 25px;
    min-height: 400px;
}

.library-folders {
    background: white;
    border-radius: 10px;
    padding: 20px;
}

.folder-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 8px;
}

.folder-item:hover {
    background-color: #e8f4f8;
}

.folder-item.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.folder-item i {
    font-size: 1.2rem;
    color: #f39c12;
}

.folder-item.active i {
    color: white;
}

.library-files {
    background: white;
    border-radius: 10px;
    padding: 20px;
}

.file-date {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Help Interface */
.help-interface {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    min-height: 500px;
}

.help-categories {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.help-category {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.help-category:hover {
    background-color: #e8f4f8;
}

.help-category.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.help-category i {
    font-size: 1.2rem;
}

.help-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
}

.help-section {
    display: none;
}

.help-section.active {
    display: block;
}

.help-section h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.help-steps {
    margin-top: 20px;
}

.help-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step-number {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.step-content p {
    color: #7f8c8d;
    line-height: 1.6;
}

.feature-guides {
    display: grid;
    gap: 20px;
}

.feature-guide {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #3498db;
}

.feature-guide h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-guide i {
    color: #3498db;
}

.security-info {
    display: grid;
    gap: 20px;
}

.security-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.security-feature i {
    font-size: 2rem;
    color: #27ae60;
    flex-shrink: 0;
}

.security-feature h4 {
    color: #2c3e50;
    margin-bottom: 8px;
}

.security-feature p {
    color: #7f8c8d;
    line-height: 1.6;
}

.faq-list {
    display: grid;
    gap: 15px;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-question h4 {
    color: #2c3e50;
    margin: 0;
}

.faq-question i {
    color: #7f8c8d;
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
    max-height: 200px;
}

.faq-answer p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

.contact-info {
    display: grid;
    gap: 25px;
}

.contact-method {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
}

.contact-method i {
    font-size: 2rem;
    color: #3498db;
    flex-shrink: 0;
}

.contact-method h4 {
    color: #2c3e50;
    margin-bottom: 8px;
}

.contact-method p {
    color: #7f8c8d;
    margin: 0;
    line-height: 1.4;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.loading-spinner i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 20px;
}

.loading-spinner p {
    color: #2c3e50;
    font-weight: 500;
    margin: 0;
}

/* Notification System */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-left: 4px solid #27ae60;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

.notification.error {
    border-left-color: #e74c3c;
}

.notification.warning {
    border-left-color: #f39c12;
}

.notification.info {
    border-left-color: #3498db;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.notification-message {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .navigation {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .analysis-interface {
        grid-template-columns: 1fr;
    }
    
    .library-content {
        grid-template-columns: 1fr;
    }
    
    .help-interface {
        grid-template-columns: 1fr;
    }
    
    .help-categories {
        order: 2;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        display: grid;
    }
    
    .library-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-library {
        max-width: none;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .security-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .search-input-group {
        flex-direction: column;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
    }
    
    .library-actions {
        flex-direction: column;
    }
    
    .notification {
        min-width: auto;
        margin: 0 10px;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

/* Progress Animation */
@keyframes countUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.metric-number {
    animation: countUp 0.6s ease;
}