body {
    background: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(128, 10, 10, 0.8));
    z-index: -1;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 50px;
    min-width: 400px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    margin-bottom: 30px;
}

.logo img {
    max-width: 200px;
    height: auto;
}

.form-title {
    color: #333;
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
    text-align: right;
}

.form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus {
    border-color: #7d1010;
    box-shadow: 0 0 0 0.2rem rgba(122, 40, 160, 0.25);
    background: white;
}

.btn.darkblue {
    background: linear-gradient(45deg, #7d1010, #592150);
    border: none;
    color: #fff;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn.darkblue:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(122, 40, 160, 0.3);
}

.btn.darkblue::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
    transition: left 0.3s ease;
}

.btn.darkblue:hover::before {
    left: 100%;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    font-weight: 500;
}

.create-account {
    background: #7d1010;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.create-account p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.login-container {
    animation: fadeIn 0.6s ease-out;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 10;
}

.form-control.with-icon {
    padding-right: 50px;
}

.links-container {
    text-align: center;
    margin-top: 20px;
}
.links-container a {
    color: #7d1010;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}
.links-container a:hover {
    color: #592150;
}
.create-account a {
    color: #fff !important;
    text-decoration: underline !important;
}


/* -- أنماط خاصة بنظام التذاكر -- */
.tickets-header {
    background: linear-gradient(135deg, #7d1010, #592150);
    color: #fff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}
.tickets-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
}
.tickets-header p {
    opacity: 0.8;
}
.clients-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 20px;
}
.table-responsive .table {
    margin-bottom: 0;
}
.chat-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 15px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.message {
    padding: 12px 18px;
    border-radius: 20px;
    max-width: 85%;
    word-wrap: break-word;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}
.message.client {
    align-self: flex-end;
    background-color: #e6f2ff;
    color: #000;
}
.message.admin {
    align-self: flex-start;
    background-color: #d4edda;
    color: #000;
}
.message-meta {
    font-size: 0.75em;
    color: #6c757d;
    margin-top: 5px;
    display: block;
}
/* تنسيق زر الإرسال */
.reply-form-container {
    padding: 15px;
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
}
.input-group .form-control {
    border-radius: 50px;
    padding: 10px 15px;
    border-color: #dee2e6;
    box-shadow: none;
}
.input-group .form-control:focus {
    border-color: #7d1010;
}
.input-group .btn-primary {
    border-radius: 50px !important;
    background: #7d1010;
    border-color: #7d1010;
    padding: 10px 20px;
    margin-right: 5px;
}
.input-group .btn-primary:hover {
    background: #592150;
    border-color: #592150;
}
.modal-content {
    border-radius: 20px;
}
.modal-header, .modal-footer {
    border: none;
}
.modal-header {
    background: linear-gradient(45deg, #7d1010, #592150);
    color: #fff;
    border-radius: 20px 20px 0 0;
}
.modal-header .btn-close {
    filter: invert(1);
}
.badge-status {
    font-size: 0.9em;
    padding: 6px 12px;
    border-radius: 50px;
    min-width: 80px;
    text-align: center;
}

@media (max-width: 768px) {
    .message {
        max-width: 95%;
    }
}

