/* Metronic Benzeri Modern Tema */

:root {
    /* Metronic Renk Paleti */
    --primary: #009ef7;
    --primary-dark: #0095e8;
    --primary-light: #f1faff;
    --secondary: #7239ea;
    --success: #50cd89;
    --info: #7239ea;
    --warning: #ffc700;
    --danger: #f1416c;
    --dark: #181c32;
    --light: #f5f8fa;

    /* Grayscale */
    --gray-50: #f9fafb;
    --gray-100: #f3f6f9;
    --gray-200: #ebedf3;
    --gray-300: #e1e3ea;
    --gray-400: #b5b5c3;
    --gray-500: #a1a5b7;
    --gray-600: #7e8299;
    --gray-700: #5e6278;
    --gray-800: #3f4254;
    --gray-900: #181c32;

    /* Shadows */
    --shadow-xs: 0 0.1rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-sm: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);

    /* Border Radius */
    --radius-sm: 0.425rem;
    --radius: 0.475rem;
    --radius-lg: 0.65rem;
    --radius-xl: 1rem;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.925rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--gray-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xs);
    height: 70px;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-brand h2 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-user {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 70px);
    max-width: 100%;
}

/* Sidebar - Metronic Style */
.sidebar {
    width: 265px;
    min-width: 265px;
    flex-shrink: 0;
    background: #ffffff;
    border-right: 1px solid var(--gray-200);
    padding: 1.5rem 0;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    box-shadow: var(--shadow-xs);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 0.25rem 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.5rem;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-menu a:hover {
    background-color: var(--gray-50);
    color: var(--primary);
    border-left-color: var(--primary);
}

.sidebar-menu a.active {
    background: linear-gradient(90deg, var(--primary-light) 0%, rgba(0, 158, 247, 0.05) 100%);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.sidebar-menu a .menu-icon {
    margin-right: 0.75rem;
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
    opacity: 0.7;
    transition: all 0.2s ease;
    display: inline-block;
}

.sidebar-menu a.active .menu-icon,
.sidebar-menu a:hover .menu-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    background-color: var(--gray-100);
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    letter-spacing: -0.5px;
}

/* Cards - Metronic Style */
.card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

/* Stats Grid - Metronic Style */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.stat-card:hover::before {
    width: 6px;
}

.stat-card h3 {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-card .stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.stat-card.primary::before {
    background: var(--primary);
}

.stat-card.primary .stat-value {
    color: var(--primary);
}

.stat-card.success::before {
    background: var(--success);
}

.stat-card.success .stat-value {
    color: var(--success);
}

.stat-card.warning::before {
    background: var(--warning);
}

.stat-card.warning .stat-value {
    color: var(--warning);
}

.stat-card.danger::before {
    background: var(--danger);
}

.stat-card.danger .stat-value {
    color: var(--danger);
}

/* Buttons - Metronic Style */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.925rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    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-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 158, 247, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 0.5rem 1rem rgba(0, 158, 247, 0.35);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
    color: var(--gray-900);
}

.btn-success {
    background: var(--success);
    color: #ffffff;
    box-shadow: 0 0.25rem 0.5rem rgba(80, 205, 137, 0.25);
}

.btn-success:hover {
    background: #45b877;
    box-shadow: 0 0.5rem 1rem rgba(80, 205, 137, 0.35);
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
    box-shadow: 0 0.25rem 0.5rem rgba(241, 65, 108, 0.25);
}

.btn-danger:hover {
    background: #d9375f;
    box-shadow: 0 0.5rem 1rem rgba(241, 65, 108, 0.35);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Table - Metronic Style */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
}

table thead {
    background: var(--gray-50);
}

table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-200);
}

table td {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.925rem;
    color: var(--gray-700);
}

table tbody tr {
    transition: all 0.2s ease;
}

table tbody tr:hover {
    background-color: var(--gray-50);
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges - Metronic Style */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.status-badge.pending {
    background: #fff4de;
    color: #f59e0b;
}

.status-badge.assigned {
    background: #e1f5fe;
    color: #0288d1;
}

.status-badge.in_progress {
    background: #f3e5f5;
    color: #7b1fa2;
}

.status-badge.completed {
    background: #d4edda;
    color: #28a745;
}

.status-badge.rejected {
    background: #f8d7da;
    color: #dc3545;
}

.status-badge.closed {
    background: var(--gray-200);
    color: var(--gray-600);
}

/* Priority Badges */
.priority-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

.priority-badge.low {
    background: var(--gray-200);
    color: var(--gray-600);
}

.priority-badge.medium {
    background: #e1f5fe;
    color: #0288d1;
}

.priority-badge.high {
    background: #fff4de;
    color: #f59e0b;
}

.priority-badge.urgent {
    background: #f8d7da;
    color: #dc3545;
}

/* Modal - Metronic Style */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    overflow-y: auto;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background-color: #ffffff;
    margin: auto;
    padding: 2rem;
    border-radius: var(--radius-xl);
    max-width: 800px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gray-400);
    cursor: pointer;
    line-height: 1;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* Form Elements - Metronic Style */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.925rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.925rem;
    transition: all 0.2s ease;
    font-family: inherit;
    background: #ffffff;
    color: var(--gray-700);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 158, 247, 0.1);
}

.form-group input:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Complaint Detail */
.complaint-detail {
    line-height: 1.8;
}

.complaint-detail h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.complaint-detail h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.125rem;
    font-weight: 600;
}

.complaint-detail .detail-row {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.complaint-detail .detail-label {
    font-weight: 600;
    width: 150px;
    color: var(--gray-600);
    font-size: 0.925rem;
}

.complaint-detail .detail-value {
    flex: 1;
    color: var(--gray-700);
}

/* Photos Grid */
.complaint-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.complaint-photos img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--gray-200);
}

.complaint-photos img:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

/* Comments */
.comments-section {
    margin-top: 2rem;
}

.comment-item {
    padding: 1.25rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border-left: 3px solid var(--gray-300);
}

.comment-item.comment-internal {
    border-left-color: var(--warning);
    background: #fff4de;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.comment-author {
    font-weight: 600;
    color: var(--gray-900);
}

.comment-date {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.comment-text {
    color: var(--gray-700);
    line-height: 1.6;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Comment Form Section */
.comment-form-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.comment-form-section h3 {
    margin: 0 0 1.25rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

.comment-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.925rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
    background: #ffffff;
    color: var(--gray-700);
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 158, 247, 0.1);
}

.comment-textarea::placeholder {
    color: var(--gray-400);
}

/* Internal Comment Checkbox */
.internal-comment-checkbox {
    margin: 1rem 0;
}

.internal-comment-checkbox input[type="checkbox"] {
    display: none;
}

.internal-comment-checkbox label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.925rem;
    color: var(--gray-700);
    transition: color 0.2s ease;
}

.internal-comment-checkbox label:hover {
    color: var(--gray-900);
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-400);
    border-radius: var(--radius-sm);
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: #ffffff;
}

.internal-comment-checkbox input[type="checkbox"]:checked+label .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.internal-comment-checkbox input[type="checkbox"]:checked+label .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.internal-comment-checkbox input[type="checkbox"]:checked+label {
    color: var(--primary);
    font-weight: 500;
}

.checkbox-label {
    line-height: 1.5;
}

/* Comment Form Actions */
.comment-form-actions {
    margin-top: 1.25rem;
    display: flex;
    justify-content: flex-end;
}

.comment-form-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
}

/* Status Action Buttons */
.status-action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.status-action-buttons .btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
}

.status-action-buttons .btn svg {
    flex-shrink: 0;
}

/* Login Page - Metronic Style */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #009ef7 0%, #7239ea 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.login-box {
    background: #ffffff;
    padding: 3.5rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    animation: slideUp 0.5s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    flex-shrink: 0;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #009ef7 0%, #7239ea 100%);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    animation: fadeInDown 0.6s ease;
}

.login-logo img {
    max-height: 150px;
    width: auto;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box h1 {
    margin-bottom: 0.5rem;
    color: var(--gray-900);
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.subtitle {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin: 0;
}

.login-form {
    margin-top: 2rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.925rem;
}

.login-form .form-group label svg {
    color: var(--primary);
    flex-shrink: 0;
}

.login-form .form-group input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: inherit;
    background: #ffffff;
    color: var(--gray-700);
}

.login-form .form-group input::placeholder {
    color: var(--gray-400);
}

.login-form .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 158, 247, 0.1);
    background: #ffffff;
}

.login-form .btn-block {
    width: 100%;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.login-form .btn-block svg {
    transition: transform 0.2s ease;
}

.login-form .btn-block:hover svg {
    transform: translateX(4px);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.login-footer p {
    color: var(--gray-600);
    font-size: 0.925rem;
    margin: 0;
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.login-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.login-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.decoration-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: -75px;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.5;
    }
}

/* Message Styles for Login */
.login-box .message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--radius);
    font-size: 0.925rem;
    text-align: center;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box .message.error {
    background: #fff5f5;
    color: var(--danger);
    border: 1px solid #fecaca;
}

.login-box .message.success {
    background: #f0fdf4;
    color: var(--success);
    border: 1px solid #bbf7d0;
}

.login-box .message.info {
    background: #eff6ff;
    color: var(--primary);
    border: 1px solid #bfdbfe;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }

    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        padding: 0.5rem 0;
    }

    .sidebar-menu li {
        margin: 0 0.5rem;
        white-space: nowrap;
    }

    .sidebar-menu a {
        padding: 0.75rem 1rem;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .sidebar-menu a.active,
    .sidebar-menu a:hover {
        border-left: none;
        border-bottom-color: var(--primary);
    }

    .main-content {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
        max-height: 95vh;
    }

    /* Login Responsive */
    .login-container {
        padding: 1rem;
    }

    .login-box {
        padding: 2rem 1.5rem;
    }

    .login-logo svg {
        width: 50px;
        height: 50px;
    }

    .login-box h1 {
        font-size: 1.5rem;
    }

    .decoration-shape {
        display: none;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Loading Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Register Page Specific Styles for Compact View */
.register-page .login-box {
    padding: 2rem 2.5rem;
    /* Reduced padding */
    margin: 1rem auto;
}

.register-page .login-header {
    margin-bottom: 1.5rem;
    /* Reduced margin */
}

.register-page .login-logo {
    margin-bottom: 1rem;
}

.register-page .login-logo img {
    max-height: 100px;
    /* Slightly smaller logo for register page */
}

.register-page .login-box h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.register-page .subtitle {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.register-page .login-form {
    margin-top: 1rem;
}

.register-page .login-form .form-group {
    margin-bottom: 0.75rem;
    /* Tighter form spacing */
}

.register-page .login-form .form-group label {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.register-page .login-form .form-group input,
.register-page .login-form .form-group textarea {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
}

.register-page .login-footer {
    margin-top: 1rem;
    padding-top: 1rem;
}