/* بسم الله الرحمن الرحيم */
:root {
    --primary-color: #000000;
    --secondary-color: #c09667;
    --danger-color: #c53030;
    --success-color: #38a169;
    --warning-color: #d69e2e;
    --dark-color: #000000;
    --light-color: #f7fafc;
    --gray-color: #a0aec0;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(0, 0, 0, 0.85);
    --glass-border: rgba(192, 150, 103, 0.25);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #111111 100%);
    color: var(--light-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}


.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 1s ease 2s forwards;
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

.loading-content {
    text-align: center;
    color: white;
    max-width: 500px;
    padding: 2rem;
}

.logo-loading {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: url('../images/logo.png') no-repeat center center;
    background-size: contain;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(192, 150, 103, 0.5));
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(5deg); }
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid transparent;
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    margin: 2rem auto;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.login-screen {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%),
                url('../images/logo.png') no-repeat center 30px;
    background-size: 100px;
}

.login-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    margin-top: 80px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header .logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: url('../images/logo.png') no-repeat center center;
    background-size: contain;
    filter: drop-shadow(0 0 10px rgba(192, 150, 103, 0.3));
}

.login-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.login-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.login-form input {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius);
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.login-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(192, 150, 103, 0.2);
}

.toggle-password {
    position: absolute;
    left: 1rem;
    top: 2.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--secondary-color);
}

.login-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #a87d4c 100%);
    color: #000;
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 150, 103, 0.4);
}


.main-app {
    display: none;
    min-height: 100vh;
}


.navbar {
    background: var(--glass-bg);
    box-shadow: var(--shadow);
    padding: 0 1.5rem;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    width: 40px;
    height: 40px;
    background: url('../images/logo.png') no-repeat center center;
    background-size: contain;
    filter: drop-shadow(0 0 5px rgba(192, 150, 103, 0.3));
}

.brand-text h2 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.2rem;
}

.brand-text p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.user-name {
    font-weight: 600;
    color: white;
}

.user-rank {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.clock-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(192, 150, 103, 0.1);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
}

.clock-container i {
    color: var(--secondary-color);
}

#current-time {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}


.sidebar {
    background: var(--glass-bg);
    width: 260px;
    height: calc(100vh - 70px);
    position: fixed;
    top: 70px;
    right: 0;
    border-left: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    overflow-y: auto;
}

.menu {
    list-style: none;
    padding: 1.5rem 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.8);
    margin: 0.2rem 0.5rem;
    border-radius: var(--radius);
}

.menu-item:hover, .menu-item.active {
    background: linear-gradient(90deg, rgba(192, 150, 103, 0.1) 0%, rgba(192, 150, 103, 0.05) 100%);
    color: var(--secondary-color);
    border-right: 3px solid var(--secondary-color);
}

.menu-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.logout-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, rgba(192, 150, 103, 0.1) 0%, rgba(192, 150, 103, 0.05) 100%);
    color: var(--secondary-color);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.logout-btn:hover {
    background: linear-gradient(135deg, rgba(192, 150, 103, 0.2) 0%, rgba(192, 150, 103, 0.1) 100%);
    transform: translateY(-1px);
}


.main-content {
    margin-right: 260px;
    padding: 1.5rem;
    min-height: calc(100vh - 70px);
    transition: var(--transition);
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--glass-border);
}

.section-header h1 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
}


.btn {
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #a87d4c 100%);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 150, 103, 0.4);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.5);
    color: var(--secondary-color);
    border: 2px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(192, 150, 103, 0.1);
}

.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.widget {
    background: var(--glass-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.widget-header {
    background: linear-gradient(90deg, rgba(192, 150, 103, 0.2) 0%, rgba(192, 150, 103, 0.1) 100%);
    padding: 1.2rem 1.5rem;
    border-bottom: 2px solid var(--glass-border);
}

.widget-header h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-content {
    padding: 1.5rem;
}

.welcome-widget .widget-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.welcome-message p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

#personal-welcome {
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(192, 150, 103, 0.05) 0%, rgba(192, 150, 103, 0.02) 100%);
    border-radius: var(--radius);
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateX(5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.stat-icon.primary { 
    background: linear-gradient(135deg, var(--secondary-color) 0%, #a87d4c 100%); 
}

.stat-info h4 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
    color: white;
}

.stat-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.jumps-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.jump-stat {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(192, 150, 103, 0.05) 0%, rgba(192, 150, 103, 0.02) 100%);
    border-radius: var(--radius);
    border-top: 3px solid var(--secondary-color);
    transition: var(--transition);
}

.jump-stat:hover {
    transform: translateY(-3px);
}

.jump-stat h4 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.jump-stat p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}


.table-responsive {
    overflow-x: auto;
    background: var(--glass-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    background: linear-gradient(90deg, rgba(192, 150, 103, 0.2) 0%, rgba(192, 150, 103, 0.1) 100%);
    color: var(--secondary-color);
    padding: 1.2rem;
    text-align: right;
    font-weight: 600;
    border-bottom: 2px solid var(--glass-border);
    position: sticky;
    top: 0;
}

.data-table td {
    padding: 1.2rem;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.data-table tr {
    transition: var(--transition);
}

.data-table tr:hover {
    background: rgba(192, 150, 103, 0.05);
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.status-badge.active {
    background: linear-gradient(135deg, rgba(56, 161, 105, 0.1) 0%, rgba(56, 161, 105, 0.05) 100%);
    color: var(--success-color);
    border: 1px solid rgba(56, 161, 105, 0.3);
}

.status-badge.warning {
    background: linear-gradient(135deg, rgba(214, 158, 46, 0.1) 0%, rgba(214, 158, 46, 0.05) 100%);
    color: var(--warning-color);
    border: 1px solid rgba(214, 158, 46, 0.3);
}

.status-badge.danger {
    background: linear-gradient(135deg, rgba(197, 48, 48, 0.1) 0%, rgba(197, 48, 48, 0.05) 100%);
    color: var(--danger-color);
    border: 1px solid rgba(197, 48, 48, 0.3);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.action-btn.edit {
    background: linear-gradient(135deg, rgba(56, 161, 105, 0.1) 0%, rgba(56, 161, 105, 0.05) 100%);
    color: var(--success-color);
    border: 1px solid rgba(56, 161, 105, 0.3);
}

.action-btn.delete {
    background: linear-gradient(135deg, rgba(197, 48, 48, 0.1) 0%, rgba(197, 48, 48, 0.05) 100%);
    color: var(--danger-color);
    border: 1px solid rgba(197, 48, 48, 0.3);
}


.ai-chat-container {
    background: var(--glass-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    height: 650px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--glass-border);
}

.chat-header {
    background: linear-gradient(90deg, rgba(192, 150, 103, 0.2) 0%, rgba(192, 150, 103, 0.1) 100%);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 2px solid var(--glass-border);
}

.ai-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #a87d4c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(192, 150, 103, 0.3);
}

.chat-title h3 {
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
    font-size: 1.4rem;
}

.chat-title p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.message {
    display: flex;
    gap: 1rem;
    max-width: 85%;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.message.ai-message {
    align-self: flex-start;
}

.message.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(192, 150, 103, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
}

.message-content {
    background: linear-gradient(135deg, rgba(192, 150, 103, 0.1) 0%, rgba(192, 150, 103, 0.05) 100%);
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    max-width: 100%;
    border: 1px solid var(--glass-border);
}

.user-message .message-content {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #a87d4c 100%);
    color: black;
    border: none;
}

.message-text {
    line-height: 1.5;
    font-size: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.message-text strong {
    color: var(--secondary-color);
}

.message-time {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
    text-align: left;
}

.user-message .message-time {
    color: rgba(0, 0, 0, 0.6);
    text-align: right;
}

.chat-input {
    padding: 1.2rem;
    border-top: 2px solid var(--glass-border);
    display: flex;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
}

.chat-input textarea {
    flex: 1;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius);
    resize: none;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    min-height: 50px;
    max-height: 150px;
}

.chat-input textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(192, 150, 103, 0.2);
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--glass-border);
}

.suggestion-btn {
    padding: 0.5rem 1rem;
    background: rgba(192, 150, 103, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.suggestion-btn:hover {
    background: rgba(192, 150, 103, 0.2);
    transform: translateY(-1px);
}

.ai-suggested-actions {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.1) 100%);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
}

.suggested-actions-title {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-buttons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.action-button {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(192, 150, 103, 0.15) 0%, rgba(192, 150, 103, 0.1) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--secondary-color);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-button:hover {
    background: linear-gradient(135deg, rgba(192, 150, 103, 0.25) 0%, rgba(192, 150, 103, 0.2) 100%);
    transform: translateY(-1px);
}


.notifications-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 320px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification {
    background: var(--glass-bg);
    border-radius: var(--radius);
    padding: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-right: 4px solid;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    animation: slideInRight 0.3s ease;
    backdrop-filter: blur(10px);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification.success {
    border-right-color: var(--success-color);
}

.notification.danger {
    border-right-color: var(--danger-color);
}

.notification.info {
    border-right-color: var(--secondary-color);
}

.notification-icon {
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: white;
}

.notification-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}


.maintenance-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}

.maintenance-tab {
    padding: 0.9rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: var(--radius) var(--radius) 0 0;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.maintenance-tab.active {
    background: linear-gradient(90deg, rgba(192, 150, 103, 0.2) 0%, rgba(192, 150, 103, 0.1) 100%);
    color: var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
}

.maintenance-tab:hover:not(.active) {
    background: rgba(192, 150, 103, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}


.parachute-row.old-parachute {
    background: linear-gradient(90deg, rgba(197, 48, 48, 0.05) 0%, rgba(197, 48, 48, 0.02) 100%) !important;
    border-left: 3px solid var(--danger-color) !important;
}

.parachute-row.high-jumps {
    background: linear-gradient(90deg, rgba(197, 48, 48, 0.08) 0%, rgba(197, 48, 48, 0.03) 100%) !important;
}

.danger-text {
    color: var(--danger-color) !important;
    font-weight: bold;
    animation: dangerPulse 2s ease-in-out infinite;
    background: transparent !important;
}

@keyframes dangerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.highlight-old {
    background: linear-gradient(90deg, 
        rgba(197, 48, 48, 0.1) 0%, 
        rgba(197, 48, 48, 0.2) 50%, 
        rgba(197, 48, 48, 0.1) 100%);
    padding: 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}


.single-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: linear-gradient(135deg, rgba(192, 150, 103, 0.15) 0%, rgba(192, 150, 103, 0.1) 100%);
    color: var(--secondary-color);
    border: 1px solid var(--glass-border);
}

.single-action-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(192, 150, 103, 0.25) 0%, rgba(192, 150, 103, 0.2) 100%);
    box-shadow: 0 4px 12px rgba(192, 150, 103, 0.2);
}


@media (max-width: 1200px) {
    .dashboard-widgets {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 220px;
    }
    
    .main-content {
        margin-right: 220px;
    }
    
    .dashboard-widgets {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
        height: 60px;
    }
    
    .nav-logo {
        width: 35px;
        height: 35px;
    }
    
    .brand-text h2 {
        font-size: 1rem;
    }
    
    .brand-text p {
        font-size: 0.75rem;
    }
    
    .user-details {
        display: none;
    }
    
    .clock-container {
        display: none;
    }
    
    .sidebar {
        width: 70px;
        transform: translateX(100%);
        transition: var(--transition);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .menu-item span {
        display: none;
    }
    
    .menu-item {
        justify-content: center;
        padding: 1rem;
    }
    
    .sidebar-footer .logout-btn span {
        display: none;
    }
    
    .main-content {
        margin-right: 0;
        padding: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .header-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .dashboard-widgets {
        grid-template-columns: 1fr;
    }
    
    .stats-grid,
    .jumps-stats {
        grid-template-columns: 1fr;
    }
    
    .ai-chat-container {
        height: 500px;
    }
    
    .chat-header {
        padding: 1rem;
    }
    
    .ai-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .message {
        max-width: 90%;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.8rem;
    }
    
    .maintenance-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .maintenance-tab {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .login-container {
        padding: 1.5rem;
        margin-top: 60px;
    }
    
    .login-header .logo {
        width: 60px;
        height: 60px;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .widget-content {
        padding: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .stat-info h4 {
        font-size: 1.5rem;
    }
    
    .jump-stat {
        padding: 1rem;
    }
    
    .jump-stat h4 {
        font-size: 1.8rem;
    }
    
    .chat-input {
        flex-direction: column;
    }
    
    .chat-input textarea {
        min-height: 60px;
    }
    
    .chat-suggestions {
        padding: 0.8rem;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .suggestion-btn {
        white-space: nowrap;
    }
    
    .notifications-container {
        width: calc(100% - 2rem);
        right: 1rem;
        left: 1rem;
    }
}

@media (max-width: 480px) {
    .menu {
        padding: 1rem 0;
    }
    
    .menu-item {
        padding: 0.8rem;
        margin: 0.1rem 0.3rem;
    }
    
    .sidebar-footer {
        padding: 1rem;
    }
    
    .logout-btn {
        padding: 0.7rem;
    }
    
    .ai-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .chat-title h3 {
        font-size: 1.2rem;
    }
    
    .chat-title p {
        font-size: 0.8rem;
    }
    
    .message-text {
        font-size: 0.9rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .action-btn {
        width: 32px;
        height: 32px;
    }
}


.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #a87d4c 100%);
    border: none;
    border-radius: 50%;
    color: black;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}


::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #a87d4c 100%);
    border-radius: 4px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #a87d4c 0%, var(--secondary-color) 100%);
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}


.fas {
    transition: var(--transition);
}

.btn:hover .fas,
.menu-item:hover .fas,
.action-btn:hover .fas {
    transform: scale(1.1);
}


a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #d4b28c;
    text-decoration: underline;
}


img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}


.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-left: 4px solid;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.alert-success {
    border-left-color: var(--success-color);
    background: linear-gradient(90deg, rgba(56, 161, 105, 0.1) 0%, rgba(56, 161, 105, 0.05) 100%);
}

.alert-warning {
    border-left-color: var(--warning-color);
    background: linear-gradient(90deg, rgba(214, 158, 46, 0.1) 0%, rgba(214, 158, 46, 0.05) 100%);
}

.alert-danger {
    border-left-color: var(--danger-color);
    background: linear-gradient(90deg, rgba(197, 48, 48, 0.1) 0%, rgba(197, 48, 48, 0.05) 100%);
}


.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius);
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(192, 150, 103, 0.2);
}


.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: rgba(192, 150, 103, 0.3);
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.empty-state p {
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}


h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.3rem;
}


p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}


.text-primary {
    color: var(--secondary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-light {
    color: rgba(255, 255, 255, 0.8) !important;
}

.card {
    background: var(--glass-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.card-header {
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.card-title {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin: 0;
}


.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 1.5rem 0;
    border: none;
}

.logo-large {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    background: url('../images/logo.png') no-repeat center center;
    background-size: contain;
    filter: drop-shadow(0 0 30px rgba(192, 150, 103, 0.5));
}

.logo-medium {
    width: 80px;
    height: 80px;
    background: url('../images/logo.png') no-repeat center center;
    background-size: contain;
}

.logo-small {
    width: 40px;
    height: 40px;
    background: url('../images/logo.png') no-repeat center center;
    background-size: contain;
}


.has-logo-bg {
    position: relative;
}

.has-logo-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/logo.png') no-repeat center center;
    background-size: 200px;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}


@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}


.shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

.shadow-xl {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
}


.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}


.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(var(--glass-bg), var(--glass-bg)) padding-box,
                linear-gradient(135deg, var(--secondary-color) 0%, transparent 100%) border-box;
}


.ai-chat-container {
    background: var(--glass-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    height: calc(100vh - 200px); 
    min-height: 500px;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--glass-border);
}

.chat-header {
    background: linear-gradient(90deg, rgba(192, 150, 103, 0.2) 0%, rgba(192, 150, 103, 0.1) 100%);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 2px solid var(--glass-border);
    flex-shrink: 0; 
}

.ai-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #a87d4c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(192, 150, 103, 0.3);
}

.chat-title {
    flex: 1;
    min-width: 0; 
}

.chat-title h3 {
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
    font-size: 1.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-title p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-main {
    display: flex;
    flex-direction: column;
    height: 100%; 
    overflow: hidden;
}


.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0; 
    max-height: 80px;
    overflow-y: auto;
}

.chat-messages {
    flex: 1; 
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    min-height: 0; 
}

.message {
    display: flex;
    gap: 1rem;
    max-width: 85%;
    animation: messageSlide 0.3s ease;
    flex-shrink: 0; 
}

@keyframes messageSlide {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.message.ai-message {
    align-self: flex-start;
}

.message.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(192, 150, 103, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
}

.message-content {
    background: linear-gradient(135deg, rgba(192, 150, 103, 0.1) 0%, rgba(192, 150, 103, 0.05) 100%);
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    max-width: 100%;
    border: 1px solid var(--glass-border);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.user-message .message-content {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #a87d4c 100%);
    color: black;
    border: none;
}

.message-text {
    line-height: 1.5;
    font-size: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message-text strong {
    color: var(--secondary-color);
}

.message-time {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
    text-align: left;
}

.user-message .message-time {
    color: rgba(0, 0, 0, 0.6);
    text-align: right;
}


.chat-input-area {
    padding: 1.2rem;
    border-top: 2px solid var(--glass-border);
    display: flex;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0; 
}

.chat-input {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-input textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius);
    resize: none;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    min-height: 50px;
    max-height: 150px;
    line-height: 1.4;
}

.chat-input textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(192, 150, 103, 0.2);
}

.chat-input-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.input-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}


.ai-suggested-actions {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.1) 100%);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    flex-shrink: 0; 
}

.suggested-actions-title {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-buttons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.action-button {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(192, 150, 103, 0.15) 0%, rgba(192, 150, 103, 0.1) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--secondary-color);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.action-button:hover {
    background: linear-gradient(135deg, rgba(192, 150, 103, 0.25) 0%, rgba(192, 150, 103, 0.2) 100%);
    transform: translateY(-1px);
}


@media (max-width: 768px) {
    .ai-chat-container {
        height: calc(100vh - 150px);
        min-height: 400px;
    }
    
    .chat-header {
        padding: 1rem;
        gap: 1rem;
    }
    
    .ai-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .chat-title h3 {
        font-size: 1.2rem;
    }
    
    .chat-title p {
        font-size: 0.8rem;
    }
    
    .chat-suggestions {
        padding: 0.8rem;
        max-height: 70px;
    }
    
    .suggestion-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .chat-messages {
        padding: 1rem;
    }
    
    .message {
        max-width: 90%;
    }
    
    .message-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .message-content {
        padding: 0.8rem 1rem;
    }
    
    .chat-input-area {
        padding: 1rem;
        flex-direction: column;
    }
    
    .input-hint {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .ai-chat-container {
        height: calc(100vh - 120px);
        min-height: 350px;
    }
    
    .chat-header {
        padding: 0.8rem;
    }
    
    .ai-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .chat-title h3 {
        font-size: 1rem;
    }
    
    .chat-title p {
        display: none;
    }
    
    .chat-suggestions {
        padding: 0.6rem;
        max-height: 60px;
    }
    
    .suggestion-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .message {
        max-width: 95%;
    }
    
    .chat-input textarea {
        min-height: 60px;
        font-size: 0.9rem;
    }
    
    .action-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}


.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #a87d4c 100%);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #a87d4c 0%, var(--secondary-color) 100%);
}


.scrollable {
    overflow-y: auto;
}

.scrollable::-webkit-scrollbar {
    width: 8px;
}

.scrollable::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.scrollable::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.scrollable::-webkit-scrollbar-thumb:hover {
    background: #a87d4c;
}


.message-content.long-text {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.message-content.long-text::-webkit-scrollbar {
    width: 4px;
}


.new-messages-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: black;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(192, 150, 103, 0.3);
    z-index: 10;
    animation: bounce 2s infinite;
    display: none;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

.new-messages-indicator.show {
    display: block;
}

.scroll-to-bottom {
    position: absolute;
    bottom: 100px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #a87d4c 100%);
    border: none;
    border-radius: 50%;
    color: black;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
    opacity: 0;
    transition: var(--transition);
}

.scroll-to-bottom.show {
    opacity: 1;
}

.scroll-to-bottom:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(192, 150, 103, 0.4);
}