* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background-color: #121212;
    color: #F5F5F7;
    min-height: 100vh;
    background-image: radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 30%);
}

.sidebar {
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    color: #F5F5F7;
    width: 250px;
    height: 100vh;
    position: fixed;
    padding: 20px 0;
    border-left: 1px solid rgba(212, 175, 55, 0.2);
}

.sidebar-header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.sidebar-header h3 {
    color: #D4AF37;
    font-size: 1.5rem;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu li {
    padding: 12px 20px;
    transition: all 0.3s;
    position: relative;
}

.sidebar-menu li:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.sidebar-menu li.active {
    background-color: rgba(212, 175, 55, 0.2);
}

.sidebar-menu li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 3px;
    background-color: #D4AF37;
    opacity: 0;
    transition: all 0.3s;
}

.sidebar-menu li.active::after,
.sidebar-menu li:hover::after {
    opacity: 1;
}

.sidebar-menu a {
    color: #F5F5F7;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar-menu i {
    margin-left: 10px;
    color: #D4AF37;
}

.main-content {
    margin-right: 250px;
    padding: 30px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header h2 {
    color: #F5F5F7;
    font-size: 1.8rem;
    position: relative;
}

.header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(to right, #D4AF37, transparent);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #D4AF37;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: rgba(245, 245, 247, 0.03);
    border: 1px solid rgba(245, 245, 247, 0.1);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #D4AF37;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
    font-size: 1.2rem;
}

.card h3 {
    font-size: 1.8rem;
    color: #F5F5F7;
    margin-bottom: 5px;
}

.card p {
    color: #888888;
    font-size: 0.9rem;
}

.ticket-table {
    background-color: rgba(245, 245, 247, 0.03);
    border: 1px solid rgba(245, 245, 247, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
}

.ticket-table .header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid rgba(245, 245, 247, 0.1);
}

th {
    color: #D4AF37;
    font-weight: 500;
}

tr:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

.status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status.open {
    background-color: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.status.in-progress {
    background-color: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

.status.resolved {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.status.closed {
    background-color: rgba(158, 158, 158, 0.1);
    color: #9E9E9E;
}

.priority {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 5px;
}

.priority.high {
    background-color: #F44336;
}

.priority.medium {
    background-color: #FF9800;
}

.priority.low {
    background-color: #4CAF50;
}

.btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-primary {
    background-color: #D4AF37;
    color: #121212;
    border: none;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #c9a227;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-success {
    background-color: #2E7D32;
    color: white;
    border: none;
}

.btn-danger {
    background-color: #C62828;
    color: white;
    border: none;
}

.ticket-form, .ticket-details {
    background-color: rgba(245, 245, 247, 0.03);
    border: 1px solid rgba(245, 245, 247, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #F5F5F7;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    background-color: rgba(245, 245, 247, 0.05);
    border: 1px solid rgba(245, 245, 247, 0.1);
    border-radius: 8px;
    color: #F5F5F7;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

textarea.form-control {
    min-height: 150px;
}


.search-container {
    margin-bottom: 30px;
}

.search-form {
    background-color: rgba(245, 245, 247, 0.03);
    border: 1px solid rgba(245, 245, 247, 0.1);
    border-radius: 15px;
    padding: 20px;
}

.search-input-group {
    display: flex;
    margin-bottom: 15px;
}

.search-input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-right: none;
}

.search-btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding: 10px 15px;
}

.pagination-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.page-item {
    display: flex;
}

.page-link {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(245, 245, 247, 0.03);
    border: 1px solid rgba(245, 245, 247, 0.1);
    border-radius: 8px;
    color: #F5F5F7;
    text-decoration: none;
    padding: 0 12px;
    transition: all 0.3s;
}

.page-link:hover {
    background-color: rgba(212, 175, 55, 0.1);
    border-color: #D4AF37;
}

.page-item.active .page-link {
    background-color: #D4AF37;
    color: #121212;
    border-color: #D4AF37;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}


.profile-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.profile-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
}

.profile-content {
    position: relative;
    z-index: 2;
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(10px);
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.profile-image-container {
    position: relative;
    flex-shrink: 0;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #D4AF37;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.profile-status {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #4CAF50;
    border: 2px solid #121212;
}

.profile-info {
    flex: 1;
    min-width: 250px;
}

.profile-name {
    color: #D4AF37;
    font-size: 1.8rem;
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
}

.profile-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(to right, #D4AF37, transparent);
}

.profile-username {
    color: #888;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.profile-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.stat-item i {
    color: #D4AF37;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(245, 245, 247, 0.1);
}

.detail-item i {
    color: #D4AF37;
    width: 20px;
    text-align: center;
}

.profile-edit-btn {
    align-self: flex-start;
    margin-right: auto;
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s;
}


select.form-control {
    background-color: rgba(18, 18, 18, 0.8) !important;
    color: #F5F5F7 !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23D4AF37' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem !important;
}

select.form-control:focus {
    border-color: #D4AF37 !important;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25) !important;
}

select.form-control option {
    background-color: #121212;
    color: #F5F5F7;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(245, 245, 247, 0.1);
}

select.form-control option:hover {
    background-color: #D4AF37 !important;
    color: #121212 !important;
}

select.form-control option:checked {
    background-color: rgba(212, 175, 55, 0.3);
    color: #F5F5F7;
}

.ticket-details-container {
    background-color: rgba(18, 18, 18, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.ticket-details-container:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.ticket-title {
    color: #D4AF37;
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.ticket-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #D4AF37, transparent);
}

.ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #F5F5F7;
    font-size: 0.9rem;
}

.ticket-meta span {
    background: rgba(245, 245, 247, 0.05);
    padding: 5px 5px;
    border-radius: 20px;
}

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

.info-card {
    background-color: rgba(18, 18, 18, 0.5);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s;
}

.info-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.info-card h4 {
    color: #D4AF37;
    margin-bottom: 20px;
    font-size: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-group {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: rgba(245, 245, 247, 0.03);
    border-radius: 8px;
    transition: all 0.3s;
}

.info-group:hover {
    background: rgba(212, 175, 55, 0.05);
}

.info-label {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.info-value {
    color: #F5F5F7;
    font-size: 0.95rem;
    font-weight: 500;
}

.ticket-conversation {
    margin-bottom: 30px;
}

.message {
    background-color: rgba(18, 18, 18, 0.5);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(245, 245, 247, 0.1);
    transition: all 0.3s;
}

.message:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.message.customer {
    border-right: 3px solid #2196F3;
}

.message.agent {
    border-right: 3px solid #D4AF37;
}

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

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 15px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    object-fit: cover;
}

.sender-info {
    display: flex;
    flex-direction: column;
}

.sender-name {
    color: #F5F5F7;
    font-weight: 500;
}

.message-date {
    color: #888;
    font-size: 0.8rem;
}

.message-body {
    color: #F5F5F7;
    line-height: 1.6;
}

.attachment {
    display: flex;
    align-items: center;
    background-color: rgba(212, 175, 55, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 10px;
    color: #D4AF37;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.attachment:hover {
    background-color: rgba(212, 175, 55, 0.2);
}

.attachment i {
    margin-left: 8px;
}

.download-link {
    margin-right: auto;
    color: #F5F5F7;
    transition: all 0.3s;
}

.download-link:hover {
    color: #D4AF37;
    transform: scale(1.1);
}

.ticket-reply {
    background-color: rgba(18, 18, 18, 0.5);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s;
}

.ticket-reply:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.ticket-reply h4 {
    color: #D4AF37;
    margin-bottom: 20px;
    font-size: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}


.profile-form, .password-form {
    background-color: rgba(245, 245, 247, 0.03);
    border: 1px solid rgba(245, 245, 247, 0.1);
    border-radius: 15px;
    padding: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.current-avatar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-avatar img {
    border-radius: 50%;
    border: 2px solid #D4AF37;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

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

.btn-secondary {
    background-color: #546E7A;
    color: white;
    border: none;
}


.alert-error {
    background-color: #F8D7DA;
    color: #58151C;
    height: auto;
    min-height: 57.6px;
    width: 100%;
    max-width: 370px;
    margin: 0 0 8px 0;
    padding: 16px;
    position: relative;
    display: block;
    border: 1px solid #F1AEB5;
    border-radius: 5px;
    box-sizing: border-box;
}


.password-input {
    position: relative;
}

.password-strength {
    margin: 20px 0;
}

.strength-meter {
    height: 5px;
    background-color: rgba(245, 245, 247, 0.1);
    border-radius: 5px;
    margin-bottom: 5px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 20%;
    background-color: #F44336;
    transition: all 0.3s;
}

.strength-text {
    font-size: 0.8rem;
    color: #888;
}

.password-requirements {
    margin: 20px 0;
}

.password-requirements h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #F5F5F7;
}

.password-requirements ul {
    list-style: none;
}

.password-requirements li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-requirements i {
    font-size: 0.9rem;
}

.password-requirements .valid {
    color: #4CAF50;
}


@media (max-width: 992px) {
    .sidebar {
        width: 80px;
    }

    .sidebar-header h3, .sidebar-menu span {
        display: none;
    }

    .sidebar-menu i {
        margin-left: 0;
        font-size: 1.3rem;
    }

    .main-content {
        margin-right: 80px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr;
    }

    table {
        display: block;
        overflow-x: auto;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .alert-error {
        padding: 12px;
        max-width: 100%;
    }

    .ticket-header {
        flex-direction: column;
        gap: 15px;
    }

    .ticket-actions {
        width: 100%;
        justify-content: flex-start;
    }

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

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .profile-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-name::after {
        right: 25%;
        width: 50%;
    }

    .profile-stats {
        justify-content: center;
    }

    .profile-edit-btn {
        align-self: center;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .page-link {
        min-width: 35px;
        height: 35px;
        padding: 0 8px;
    }
}



