



/* Ticket Section */
.order-section {
    background: linear-gradient(135deg, #262626, #212121);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}


/* Success and Error Messages */
.success-message,
.error-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 1rem;
}

.success-message {
    background-color: #28a745;
    color: white;
}

.error-message {
    background-color: #dc3545;
    color: white;
}

.containerda {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Ticket Form Styling */
.ticket-form-container {
    background: var(--dark-card);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}

.ticket-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ticket-form .form-group {
    margin-bottom: 25px;
    position: relative;
}

.ticket-form label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
}

.ticket-form input[type="text"],
.ticket-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.ticket-form textarea {
    min-height: 150px;
    resize: vertical;
}

.ticket-form input[type="text"]:focus,
.ticket-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.1);
}

.ticket-form .submit-button {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.ticket-form .submit-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.ticket-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 153, 0, 0.1);
}

.ticket-header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
    word-break: break-word;
    line-height: 1.3;
}

.ticket-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-light);
    opacity: 0.7;
    font-size: 1rem;
}

.ticket-subtitle i {
    color: var(--primary-color);
}

.ticket-header .ticket-id {
    color: var(--text-light);
    opacity: 0.7;
    font-size: 1rem;
    margin-top: 5px;
}

.ticket-header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 5px;
    word-break: break-word;
}

.ticket-header p {
    color: var(--text-light);
    opacity: 0.8;
}

.ticket-guidelines {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 153, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
}

.ticket-guidelines h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.ticket-guidelines ul {
    list-style: none;
    padding: 0;
}

.ticket-guidelines li {
    color: var(--text-light);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.ticket-guidelines li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 10px;
}

.success_t {
    background-color: #4caf50;
    color: white;
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
}

.error {
    background-color: #d32f2f;
    color: white;
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Form Styling */
form {
    margin-top: 15px;
}

form label {
    display: block;
    font-size: 1em;
    color: #bb86fc;
    font-weight: 600;
    margin-bottom: 8px;
}

.ticket-section form input[type="text"],
form textarea {
    width: calc(100% - 22px);
    padding: 12px;
    background-color: #272727;
    border: 1px solid #333;
    color: #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

form input[type="text"]:focus,
form textarea:focus {
    border-color: #bb86fc;
    box-shadow: 0 0 10px rgba(187, 134, 252, 0.5);
    outline: none;
}

form textarea {
    resize: vertical;
    min-height: 150px;
}
/* Submit Button */
.btn.primaryi {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn.primaryi:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}
/* Submit Button */
.btn {
    background-color: #8c86fc;
    color: white;
    padding: 12px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #27b095;
    transform: scale(1.05);
}
/* Ticket View Styles */
.ticket-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    color: var(--primary-color);
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-badge.open {
    background: rgba(255, 153, 0, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(255, 153, 0, 0.2);
}

.status-badge.closed {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.message-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 153, 0, 0.1);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    overflow: hidden;
}

.message-header {
    background: rgba(255, 153, 0, 0.05);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 153, 0, 0.1);
}

.message-body {
    padding: 15px;
    line-height: 1.6;
    background: var(--dark-card);
    color: var(--text-light);
}

.initial-message, .admin-reply, .user-reply {
    background: var(--dark-card);
}

/* Remove any conflicting styles */
.message-box {
    background-color: transparent !important;
}

.initial-message {
    border-left: 3px solid var(--primary-color);
}

.admin-reply {
    border-left: 3px solid var(--primary-color);
}

.user-reply {
    border-left: 3px solid var(--secondary-color);
}

.no-replies {
    background: var(--dark-card);
    padding: 30px;
    text-align: center;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 153, 0, 0.1);
}

.no-replies i {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5em;
}

.message-header i {
    color: var(--primary-color);
}

.message-body {
    padding: 15px;
    line-height: 1.6;
}

.reply-date {
    margin-left: auto;
    font-size: 0.9em;
    opacity: 0.7;
}

.admin-reply {
    border-left: 3px solid var(--primary-color);
}

.user-reply {
    border-left: 3px solid var(--secondary-color);
}

.no-replies {
    text-align: center;
    padding: 30px;
    color: var(--text-light);
    opacity: 0.7;
}

.ticket-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 20px;
}

.create-ticket-btn i {
    font-size: 1.1em;
}

.create-ticket-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.close-button {
    background: #e74c3c;
    color: white;
}

.delete-button {
    background: #e74c3c;
    color: white;
}

.delete-button:hover {
    background: #c0392b;
}

.back-button {
    background: var(--dark-card);
    color: var(--text-light);
}

.action-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.replies-section {
    margin: 30px 0;
}

.replies-section h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.replies-section h3 i {
    color: var(--primary-color);
}

form textarea {
    width: calc(100% - 22px);
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #333;
    background-color: #272727;
    color: #e0e0e0;
    border-radius: 5px;
    resize: vertical;
}

form button {
    background-color: #bb86fc;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #9c27b0;
}

.btn-container {
    margin-top: 20px;
    text-align: right;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    text-decoration: none;
    color: white;
}

.close-btn {
    background-color: #d32f2f; /* Red for close button */
}

.close-btn:hover {
    background-color: #b71c1c;
}

.back-btn {
    background-color: #5c6bc0; /* Blue for back button */
}

.back-btn:hover {
    background-color: #3949ab;
}

.error-message {
    background-color: #d32f2f;
    color: white;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .containerda {
        width: 95%;
    }
}


.status-pending { color: orange; font-weight: bold; }
.status-completed { color: green; font-weight: bold; }
.status-cancelled { color: red; font-weight: bold; }

.message-success { background: #d4edda; color: #155724; padding: 10px; margin: 10px 0; border-left: 5px solid #28a745; }
.message-error { background: #f8d7da; color: #721c24; padding: 10px; margin: 10px 0; border-left: 5px solid #dc3545; }
.btn { padding: 5px 10px; text-decoration: none; border-radius: 5px; margin: 2px; }
.btn-complete { background: green; color: white; }
.btn-delete { background: red; color: white; }

/* Message Box */
.message-box {
    background-color: #27ae60;
    color: white;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-weight: bold;
}

/* Table */
.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ticket-item {
    background: var(--dark-card);
    border: 1px solid rgba(255, 153, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.ticket-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.ticket-info {
    flex: 1;
}

.ticket-title {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-title i {
    color: var(--primary-color);
}

.ticket-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ticket-date {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    opacity: 0.7;
    font-size: 0.9em;
}

.ticket-actions {
    display: flex;
    gap: 10px;
}

.view-button {
    background: var(--primary-color);
    color: white;
}

.no-tickets {
    text-align: center;
    padding: 40px 20px;
}

.no-tickets i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.no-tickets p {
    color: var(--text-light);
    margin-bottom: 20px;
}
.edit-btn {
    background-color: var(--primary-color);
    color: white;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.edit-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.delete-btn {
    background-color: #e74c3c;
    color: white;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.delete-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}
.dashboard-nav {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: var(--dark-card);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 153, 0, 0.1);
    flex-wrap: wrap;
}

.dashboard-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
}

.dashboard-nav .nav-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.dashboard-nav .nav-item i {
    color: var(--primary-color);
}

.dashboard-nav .nav-item:hover i {
    color: white;
}

@media (max-width: 768px) {
    .dashboard-nav {
        flex-direction: column;
    }
    
    .dashboard-nav .nav-item {
        width: 100%;
    }
}
.ticket-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 30px;
}

.ticket-header .action-button.view-button {
    margin-top: 10px;
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.ticket-header .action-button.view-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.settings-container {
    padding: 25px;
    background: var(--dark-card);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 153, 0, 0.1);
}

.settings-header {
    margin-bottom: 30px;
}

.settings-header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.settings-header p {
    color: var(--text-light);
    opacity: 0.8;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.settings-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 153, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.card-header i {
    color: var(--primary-color);
    font-size: 1.2em;
}

.card-header h2 {
    color: var(--text-light);
    font-size: 1.2em;
    font-weight: 500;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: var(--text-light);
    margin-bottom: 5px;
    font-size: 0.9em;
    opacity: 0.8;
}

.form-group input {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 153, 0, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-light);
}

.form-group input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.submit-button {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.submit-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}
