/* Custom styles for Hirab Sanat */

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
}

body {
    font-family: 'Vazir', sans-serif;
}

/* General utility classes */
.container {
    max-width: 1200px;
}

/* Flash Messages */
.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

/* Admin/User Panel Sidebar */
.sidebar {
    min-width: 250px;
    max-width: 250px;
}

.sidebar a {
    padding: 0.75rem 1rem;
    display: block;
    color: #cbd5e0; /* Gray 400 */
    transition: all 0.2s;
}

.sidebar a:hover {
    background-color: #2d3748; /* Gray 800 */
    color: #ffffff;
}

.sidebar a.active {
    background-color: #3182ce; /* Blue 600 */
    color: #ffffff;
    font-weight: bold;
}

/* Forms */
.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a5568; /* Gray 700 */
}

.error-message {
    color: #e53e3e; /* Red 600 */
    font-size: 0.875rem;
    margin-top: 0.25rem;
}
/* Google Center | gglct.com */

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --danger-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --warning-gradient: linear-gradient(135deg, #fddb92 0%, #d1fdff 100%);
    --info-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #00f2fe;
    --danger-color: #fa709a;
    --warning-color: #fddb92;
    --info-color: #a8edea;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #a0aec0;
    --text-white: #ffffff;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    
    --border-color: #e2e8f0;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);
    
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #ecf0f1;
        --text-secondary: #bdc3c7;
        --text-light: #95a5a6;
        --bg-primary: #34495e;
        --bg-secondary: #2c3e50;
        --bg-tertiary: #1f2a37;
        --border-color: #44617e;
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
        --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.5);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Vazir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    direction: rtl;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

::selection {
    background-color: rgba(102, 126, 234, 0.2);
    color: var(--text-primary);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px;
    transition: var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

input, textarea, select {
    font-family: inherit;
    outline: none;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
}

.flash-message {
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    transition: opacity 0.5s ease-out, height 0.5s ease-out, padding 0.5s ease-out, margin 0.5s ease-out;
}

.flash-message::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
}

.flash-message i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.flash-message-content {
    flex: 1;
}

.flash-message-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.flash-message-text {
    margin: 0;
    opacity: 0.9;
}

.flash-success {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.15) 0%, rgba(56, 178, 172, 0.15) 100%);
    color: #2f855a;
    border: 2px solid rgba(72, 187, 120, 0.3);
}

.flash-success::before {
    background: linear-gradient(135deg, #48bb78 0%, #38b2ac 100%);
}

.flash-success i {
    color: #48bb78;
}

.flash-error {
    background: linear-gradient(135deg, rgba(252, 129, 129, 0.15) 0%, rgba(245, 101, 101, 0.15) 100%);
    color: #c53030;
    border: 2px solid rgba(252, 129, 129, 0.3);
}

.flash-error::before {
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
}

.flash-error i {
    color: #fc8181;
}

.flash-warning {
    background: linear-gradient(135deg, rgba(246, 173, 85, 0.15) 0%, rgba(237, 137, 54, 0.15) 100%);
    color: #c05621;
    border: 2px solid rgba(246, 173, 85, 0.3);
}

.flash-warning::before {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
}

.flash-warning i {
    color: #f6ad55;
}

.flash-info {
    background: linear-gradient(135deg, rgba(99, 179, 237, 0.15) 0%, rgba(66, 153, 225, 0.15) 100%);
    color: #2c5282;
    border: 2px solid rgba(99, 179, 237, 0.3);
}

.flash-info::before {
    background: linear-gradient(135deg, #63b3ed 0%, #4299e1 100%);
}

.flash-info i {
    color: #63b3ed;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar {
    min-width: 280px;
    max-width: 280px;
    background: var(--dark-gradient);
    height: 100vh;
    position: sticky;
    top: 0;
    padding: 2rem 0;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-base);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-header {
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-white);
    text-decoration: none;
}

.sidebar-logo-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.sidebar-logo-text {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.sidebar-menu {
    padding: 0 1rem;
}

.sidebar-menu-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    padding: 1rem 0.5rem 0.5rem;
}

.sidebar-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-md);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition-fast);
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    transform: translateX(-5px);
}

.sidebar-link:hover::before {
    opacity: 1;
}

.sidebar-link.active {
    background: var(--primary-gradient);
    color: var(--text-white);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.sidebar-link.active::before {
    opacity: 0;
}

.sidebar-link-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.sidebar-link-text {
    font-size: 0.95rem;
    flex: 1;
}

.sidebar-link-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
}

.sidebar-user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    overflow: hidden;
}

.sidebar-user-name {
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.65rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-clip: padding-box;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-control::placeholder {
    color: var(--text-light);
    opacity: 1;
}

.form-control:hover {
    border-color: rgba(102, 126, 234, 0.3);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background-color: var(--bg-primary);
}

.form-control:disabled,
.form-control[readonly] {
    background-color: var(--bg-tertiary);
    opacity: 0.7;
    cursor: not-allowed;
}

.form-control.is-valid {
    border-color: #48bb78;
    padding-left: 3rem;
}

.form-control.is-valid:focus {
    border-color: #48bb78;
    box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.15);
}

.form-control.is-invalid {
    border-color: #fc8181;
    padding-left: 3rem;
}

.form-control.is-invalid:focus {
    border-color: #fc8181;
    box-shadow: 0 0 0 4px rgba(252, 129, 129, 0.15);
}

.form-control-icon {
    position: absolute;
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-group:focus-within .form-control-icon {
    color: var(--primary-color);
}

.form-control-feedback {
    position: absolute;
    top: 50%;
    left: 1.25rem;
    transform: translateY(-50%);
    font-size: 1.1rem;
}

.form-control.is-valid ~ .form-control-feedback {
    color: #48bb78;
}

.form-control.is-invalid ~ .form-control-feedback {
    color: #fc8181;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23667eea' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 16px 12px;
    padding-left: 3rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    appearance: none;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-primary);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.form-check-input:hover {
    border-color: var(--primary-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.form-check-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input[type="radio"]:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

.form-check-label {
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #c53030;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    animation: shake 0.3s ease-in-out;
}

.error-message i {
    font-size: 1rem;
}

.success-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2f855a;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.success-message i {
    font-size: 1rem;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.input-group-prepend,
.input-group-append {
    display: flex;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    background-color: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    transition: var(--transition-fast);
}

.input-group-prepend .input-group-text {
    border-left: 0;
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
}

.input-group-append .input-group-text {
    border-right: 0;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.input-group-prepend ~ .form-control {
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.input-group .form-control ~ .input-group-append {
    margin-right: -2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 2px solid transparent;
    padding: 0.9rem 1.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    border-radius: var(--border-radius-md);
    transition: var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn:focus {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.25);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 16px rgba(245, 87, 108, 0.4);
}

.btn-success {
    background: var(--success-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.btn-success:hover {
    box-shadow: 0 6px 16px rgba(79, 172, 254, 0.4);
}

.btn-danger {
    background: var(--danger-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(250, 112, 154, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 16px rgba(250, 112, 154, 0.4);
}

.btn-warning {
    background: var(--warning-gradient);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(253, 219, 146, 0.3);
}

.btn-warning:hover {
    box-shadow: 0 6px 16px rgba(253, 219, 146, 0.4);
}

.btn-info {
    background: var(--info-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(168, 237, 234, 0.3);
}

.btn-info:hover {
    box-shadow: 0 6px 16px rgba(168, 237, 234, 0.4);
}

.btn-dark {
    background: var(--dark-gradient);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.btn-dark:hover {
    box-shadow: 0 6px 16px rgba(44, 62, 80, 0.4);
}

.btn-light {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-light:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    color: var(--text-white);
    border-color: transparent;
}

.btn-outline-secondary {
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--secondary-gradient);
    color: var(--text-white);
    border-color: transparent;
}

.btn-outline-success {
    color: var(--success-color);
    border: 2px solid var(--success-color);
    background: transparent;
}

.btn-outline-success:hover {
    background: var(--success-gradient);
    color: var(--text-white);
    border-color: transparent;
}

.btn-outline-danger {
    color: var(--danger-color);
    border: 2px solid var(--danger-color);
    background: transparent;
}

.btn-outline-danger:hover {
    background: var(--danger-gradient);
    color: var(--text-white);
    border-color: transparent;
}

.btn-outline-warning {
    color: var(--warning-color);
    border: 2px solid var(--warning-color);
    background: transparent;
}

.btn-outline-warning:hover {
    background: var(--warning-gradient);
    color: var(--text-primary);
    border-color: transparent;
}

.btn-outline-info {
    color: var(--info-color);
    border: 2px solid var(--info-color);
    background: transparent;
}

.btn-outline-info:hover {
    background: var(--info-gradient);
    color: var(--text-white);
    border-color: transparent;
}

.btn-outline-dark {
    color: var(--dark-color);
    border: 2px solid var(--dark-color);
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--dark-gradient);
    color: var(--text-white);
    border-color: transparent;
}

.btn-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
}

.btn-lg {
    padding: 1.1rem 2.25rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius-lg);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    width: 45px;
    height: 45px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-sm {
    width: 36px;
    height: 36px;
}

.btn-icon-lg {
    width: 54px;
    height: 54px;
}

.btn-group {
    display: inline-flex;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.btn-group .btn {
    border-radius: 0;
    margin: 0;
}

.btn-group .btn:first-child {
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
}

.btn-group .btn:last-child {
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.btn-group .btn:not(:last-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition-fast);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    padding: 1.5rem 1.75rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.card-header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.card-header-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.card-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-body {
    padding: 1.75rem;
}

.card-footer {
    padding: 1.25rem 1.75rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.card-img-top {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

.card-overlay {
    position: relative;
    overflow: hidden;
}

.card-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: var(--transition-base);
}

.card-overlay:hover::after {
    opacity: 1;
}

.card-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.75rem;
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-base);
    z-index: 1;
}

.card-overlay:hover .card-overlay-content {
    transform: translateY(0);
    opacity: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 20px;
    transition: var(--transition-fast);
}

.badge-primary {
    background: var(--primary-gradient);
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.badge-secondary {
    background: var(--secondary-gradient);
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

.badge-success {
    background: var(--success-gradient);
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

.badge-danger {
    background: var(--danger-gradient);
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(250, 112, 154, 0.3);
}

.badge-warning {
    background: var(--warning-gradient);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(253, 219, 146, 0.3);
}

.badge-info {
    background: var(--info-gradient);
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(168, 237, 234, 0.3);
}

.badge-dark {
    background: var(--dark-gradient);
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.3);
}

.badge-light {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.badge-pill {
    border-radius: 50px;
    padding: 0.4rem 1.1rem;
}

.badge-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.badge-icon i {
    font-size: 0.85rem;
}

.alert {
    position: relative;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius-md);
    border: 2px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    animation: fadeInDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
}

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.alert-text {
    margin: 0;
    line-height: 1.6;
}

.alert-success {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(56, 178, 172, 0.1) 100%);
    color: #2f855a;
    border-color: rgba(72, 187, 120, 0.3);
}

.alert-success::before {
    background: linear-gradient(135deg, #48bb78 0%, #38b2ac 100%);
}

.alert-success .alert-icon {
    color: #48bb78;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(252, 129, 129, 0.1) 0%, rgba(245, 101, 101, 0.1) 100%);
    color: #c53030;
    border-color: rgba(252, 129, 129, 0.3);
}

.alert-danger::before {
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
}

.alert-danger .alert-icon {
    color: #fc8181;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(246, 173, 85, 0.1) 0%, rgba(237, 137, 54, 0.1) 100%);
    color: #c05621;
    border-color: rgba(246, 173, 85, 0.3);
}

.alert-warning::before {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
}

.alert-warning .alert-icon {
    color: #f6ad55;
}

.alert-info {
    background: linear-gradient(135deg, rgba(99, 179, 237, 0.1) 0%, rgba(66, 153, 225, 0.1) 100%);
    color: #2c5282;
    border-color: rgba(99, 179, 237, 0.3);
}

.alert-info::before {
    background: linear-gradient(135deg, #63b3ed 0%, #4299e1 100%);
}

.alert-info .alert-icon {
    color: #63b3ed;
}

.alert-dismissible {
    padding-left: 3.5rem;
}

.alert-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    transition: var(--transition-fast);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
}

.alert-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.table {
    width: 100%;
    margin-bottom: 0;
    color: var(--text-primary);
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-primary);
}

.table thead {
    background: var(--bg-secondary);
}

.table thead th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid var(--border-color);
    vertical-align: middle;
    white-space: nowrap;
}

.table tbody tr {
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody tr:hover {
    background: var(--bg-secondary);
    transform: scale(1.01);
}

.table tbody td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    font-size: 0.95rem;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(102, 126, 234, 0.02);
}

.table-bordered {
    border: 1px solid var(--border-color);
}

.table-bordered th,
.table-bordered td {
    border: 1px solid var(--border-color);
}

.table-hover tbody tr:hover {
    background: var(--bg-secondary);
    cursor: pointer;
}

.table-sm th,
.table-sm td {
    padding: 0.75rem 1rem;
}

.table-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.table-action-btn:hover {
    transform: scale(1.1);
}

.table-action-btn.edit {
    background: rgba(99, 179, 237, 0.15);
    color: #2b6cb0;
}

.table-action-btn.edit:hover {
    background: rgba(99, 179, 237, 0.25);
}

.table-action-btn.delete {
    background: rgba(252, 129, 129, 0.15);
    color: #c53030;
}

.table-action-btn.delete:hover {
    background: rgba(252, 129, 129, 0.25);
}

.table-action-btn.view {
    background: rgba(72, 187, 120, 0.15);
    color: #2f855a;
}

.table-action-btn.view:hover {
    background: rgba(72, 187, 120, 0.25);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.pagination-item:hover {
    background: var(--primary-gradient);
    color: var(--text-white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-item.active {
    background: var(--primary-gradient);
    color: var(--text-white);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-item:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-prev,
.pagination-next {
    font-size: 1.2rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    background: var(--bg-primary);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.modal-header {
    padding: 1.75rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--bg-secondary);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--danger-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    max-height: calc(90vh - 200px);
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    background: var(--bg-secondary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tooltip {
    position: absolute;
    background: var(--dark-color);
    color: var(--text-white);
    padding: 0.5rem 0.9rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10000;
    box-shadow: var(--shadow-lg);
    animation: tooltipFadeIn 0.2s ease;
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 50%;
    transform: translateX(50%);
    border: 6px solid transparent;
    border-bottom-color: var(--dark-color);
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-primary);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    padding: 0.75rem 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);
    border: 1px solid var(--border-color);
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.dropdown-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.progress {
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 50px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-tertiary);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-sm {
    width: 24px;
    height: 24px;
    border-width: 3px;
}

.spinner-lg {
    width: 56px;
    height: 56px;
    border-width: 5px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    color: var(--text-light);
    margin-right: 0.75rem;
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

.tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.tab-item {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 1rem 1.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-item:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.tab-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.accordion {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: 1.25rem 1.75rem;
    background: var(--bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-fast);
    user-select: none;
}

.accordion-header:hover {
    background: var(--bg-secondary);
}

.accordion-header.active {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.accordion-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body.active {
    max-height: 1000px;
}

.accordion-content {
    padding: 1.5rem 1.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        right: -280px;
        height: 100vh;
        z-index: 1100;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
    }

    .sidebar.open {
        right: 0;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3);
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1050;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .overlay.active {
        display: block;
        opacity: 1;
    }

    .main-content {
        margin-right: 0;
    }

    .header-content {
        padding: 0 1.5rem;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .header-left {
        order: 2;
    }

    .header-right {
        order: 3;
        flex-grow: 1;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .header-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: var(--border-radius-md);
        color: var(--text-white);
        font-size: 1.5rem;
        cursor: pointer;
        transition: var(--transition-fast);
        order: 1;
        flex-shrink: 0;
    }

    .header-toggle:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1.25rem 1.5rem;
    }

    .card-header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .tab-item {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .pagination-item {
        min-width: 38px;
        height: 38px;
        padding: 0 0.8rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .header-content {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 0 1rem;
    }

    .header-left {
        flex: 1;
        order: 2;
        justify-content: center;
    }

    .user-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .user-info h2 {
        font-size: 1rem;
    }

    .user-info p {
        font-size: 0.75rem;
    }

    .header-right {
        order: 3;
        flex-grow: 0;
        justify-content: flex-end;
        gap: 0.5rem;
    }

    .header-toggle {
        order: 1;
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .flash-message {
        padding: 1rem;
        font-size: 0.9rem;
        gap: 0.75rem;
    }

    .flash-message i {
        font-size: 1.2rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-control {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .btn-lg {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }

    .card {
        border-radius: var(--border-radius-lg);
    }

    .card-header {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .card-footer {
        padding: 1rem 1.25rem;
    }

    .table thead th,
    .table tbody td {
        padding: 1rem 1.25rem;
        font-size: 0.85rem;
    }

    .modal-dialog {
        width: 95%;
        border-radius: var(--border-radius-lg);
    }

    .modal-header {
        padding: 1.25rem 1.5rem;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-close {
        font-size: 1.5rem;
        width: 36px;
        height: 36px;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-footer {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    body {
        font-size: 14px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 10px;
    }

    .header-left {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
        order: 2;
    }

    .header-right {
        width: 100%;
        justify-content: center;
        gap: 0.3rem;
        order: 3;
    }

    .header-right .btn {
        flex-grow: 1;
    }

    .header-toggle {
        position: absolute;
        top: 15px;
        right: 10px;
        order: 1;
    }

    .flash-message {
        padding: 0.8rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .flash-message i {
        font-size: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .form-control {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    .btn-lg {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .card-header {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .card-body {
        padding: 1rem;
    }

    .card-footer {
        padding: 0.8rem 1rem;
    }

    .table thead th,
    .table tbody td {
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
    }

    .pagination-item {
        min-width: 34px;
        height: 34px;
        padding: 0 0.6rem;
        font-size: 0.8rem;
    }

    .modal-dialog {
        width: 98%;
        border-radius: var(--border-radius-md);
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .modal-close {
        font-size: 1.3rem;
        width: 30px;
        height: 30px;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 0.8rem 1rem;
    }

    .sidebar-logo-text {
        display: none;
    }
    
    .sidebar-logo {
        justify-content: center;
    }
}
/* Google Center | gglct.com */