* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8fafc;
}

/* Sidebar responsive */
.sidebar-transition {
    transition: transform 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .sidebar-mobile {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 50;
        transform: translateX(-100%);
    }
    
    .sidebar-mobile.open {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 40;
    }
}

/* Card responsive */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Button responsive */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Mobile adaptations */
@media (max-width: 640px) {
    .btn-mobile {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .text-mobile {
        font-size: 0.875rem;
    }
    
    .grid-mobile {
        grid-template-columns: 1fr;
    }
    
    .overflow-mobile {
        overflow-x: auto;
    }
}

/* Table responsive */
@media (max-width: 768px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .table-responsive table {
        min-width: 600px;
    }
}

/* Form responsive */
@media (max-width: 640px) {
    .form-responsive {
        grid-template-columns: 1fr;
    }
    
    .modal-responsive {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
}

/* Notification responsive */
.notification-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Animation responsive */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Chat responsive */
@media (max-width: 768px) {
    .chat-mobile {
        position: fixed;
        bottom: 1rem;
        right: 1rem;
        width: calc(100vw - 2rem);
        max-width: 350px;
    }
}

/* Header responsive */
@media (max-width: 768px) {
    .header-mobile {
        padding: 0.75rem 1rem;
    }
    
    .header-mobile h1 {
        font-size: 1.25rem;
    }
}

/* Content responsive */
@media (max-width: 768px) {
    .content-mobile {
        padding: 1rem;
    }
    
    .content-mobile h2 {
        font-size: 1.5rem;
    }
}
