﻿/* ========== Admin Panel Styles ========== */
:root {
    --admin-bg: #0f1923;
    --admin-sidebar: #0a1118;
    --admin-header: #111d2b;
    --admin-card: #15202f;
    --admin-border: #1e2d3d;
    --admin-text: #e0e5ec;
    --admin-muted: #6b7b8c;
    --gold: #a9bf37;
    --gold-light: #c2d84a;
    --gold-glow: rgba(169, 191, 55, 0.3);
}

body {
    font-family: 'Peyda', sans-serif;
    background: var(--admin-bg);
    color: var(--admin-text);
}

/* ========== Admin Wrapper ========== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ========== Sidebar ========== */
.admin-sidebar {
    width: 300px;
    background: var(--admin-sidebar);
    border-left: 2px solid var(--admin-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid var(--admin-border);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--gold);
    font-size: 1.4rem;
    font-weight: 800;
}

    .sidebar-logo i {
        font-size: 2rem;
    }

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

    .sidebar-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .sidebar-nav li {
        margin-bottom: 5px;
    }

    .sidebar-nav a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 25px;
        color: var(--admin-muted);
        text-decoration: none;
        transition: all 0.3s;
        font-weight: 500;
        border-right: 3px solid transparent;
    }

        .sidebar-nav a:hover,
        .sidebar-nav a.active {
            background: rgba(169, 191, 55, 0.08);
            color: var(--gold-light);
            border-right-color: var(--gold);
        }

        .sidebar-nav a i {
            width: 24px;
            text-align: center;
            font-size: 1.1rem;
        }

    .sidebar-nav .badge {
        background: var(--gold);
        color: #000;
        border-radius: 50px;
        padding: 2px 8px;
        font-size: 0.75rem;
        font-weight: 700;
        margin-right: auto;
    }

.sidebar-divider {
    border-top: 1px solid var(--admin-border);
    margin: 15px 0;
}

/* ========== Main Content ========== */
.admin-main {
    flex: 1;
    margin-right: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-content {
    flex: 1;
    padding: 30px;
}

/* ========== Admin Header ========== */
.admin-header {
    background: var(--admin-header);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--admin-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.sidebar-toggle {
    background: transparent;
    border: none;
    color: var(--admin-text);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: auto;
}

.admin-greeting {
    color: var(--admin-muted);
    font-size: 0.9rem;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-weight: 600;
    background: rgba(169, 191, 55, 0.1);
    padding: 8px 15px;
    border-radius: 50px;
}

/* ========== Login Page ========== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a1118, #15202f);
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: var(--admin-card);
    border: 2px solid var(--admin-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

.login-logo {
    text-align: center;
    margin-bottom: 35px;
}

    .login-logo i {
        font-size: 3.5rem;
        color: var(--gold);
        margin-bottom: 10px;
    }

    .login-logo h2 {
        color: var(--gold);
        font-weight: 900;
        font-size: 2rem;
        margin: 0;
    }

    .login-logo p {
        color: var(--admin-muted);
        margin: 5px 0 0;
    }

.login-card .form-label {
    color: var(--admin-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.login-card .input-group-text {
    background: var(--admin-bg);
    border-color: var(--admin-border);
    color: var(--gold);
}

.login-card .form-control {
    background: var(--admin-bg);
    border-color: var(--admin-border);
    color: var(--admin-text);
    padding: 12px 15px;
}

    .login-card .form-control:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 0.2rem rgba(169, 191, 55, 0.15);
    }

.btn-login {
    background: linear-gradient(135deg, #c2d84a, #a9bf37);
    color: #000;
    font-weight: 700;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s;
}

    .btn-login:hover {
        background: linear-gradient(135deg, #a9bf37, #8a9e2a);
        box-shadow: 0 10px 30px var(--gold-glow);
        transform: translateY(-2px);
        color: #000;
    }

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(100%);
    }

        .admin-sidebar.open {
            transform: translateX(0);
        }

    .admin-main {
        margin-right: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .admin-content {
        padding: 20px 15px;
    }
}


/*برای استایل دهی برای مشاهده اعتبار پیامک*/
/* ========== SMS Credit Card ========== */
.sms-credit-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    margin: 15px 15px;
    background: rgba(169, 191, 55, 0.08);
    border: 1px solid rgba(169, 191, 55, 0.2);
    border-radius: 12px;
}

.sms-credit-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    border-radius: 10px;
    color: #000;
    font-size: 1.2rem;
}

.sms-credit-info {
    display: flex;
    flex-direction: column;
}

.sms-credit-label {
    font-size: 0.7rem;
    color: var(--admin-muted);
    font-weight: 500;
}

.sms-credit-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1.2;
}

.sms-credit-unit {
    font-size: 0.65rem;
    color: var(--admin-muted);
}


/*برای استایل دهی به کارت های اماری در داشبورد*/
/* ========== Dashboard ========== */
.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}

    .dashboard-title i {
        color: var(--gold);
    }

.dashboard-subtitle {
    color: var(--admin-muted);
    font-size: 0.9rem;
}

/* ========== Stats Grid ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 80px;
        height: 80px;
        background: radial-gradient(circle, rgba(169,191,55,0.08) 0%, transparent 70%);
        border-radius: 0 0 0 80px;
    }

    .stat-card:hover {
        border-color: var(--gold);
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(169, 191, 55, 0.15);
    }

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.messages-icon {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.jobs-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.applications-icon {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.pending-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

    .stat-change.up {
        background: rgba(16, 185, 129, 0.15);
        color: #10b981;
    }

    .stat-change.down {
        background: rgba(239, 68, 68, 0.15);
        color: #ef4444;
    }

.stat-value {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--admin-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    color: var(--gold-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

    .stat-link:hover {
        gap: 10px;
        color: var(--gold);
    }

/* ========== Dashboard Row ========== */
.dashboard-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.dashboard-card {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    padding: 25px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--admin-border);
}

    .card-header i {
        color: var(--gold);
        font-size: 1.3rem;
    }

    .card-header h3 {
        color: #fff;
        font-weight: 700;
        font-size: 1.1rem;
    }

/* ========== SMS Status ========== */
.sms-credit-large {
    text-align: center;
    margin-bottom: 20px;
}

.sms-credit-amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold-light);
    display: block;
}

.sms-credit-currency {
    color: var(--admin-muted);
    font-size: 0.9rem;
}

.sms-status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

    .sms-status-indicator.active {
        background: rgba(16, 185, 129, 0.1);
        color: #10b981;
    }

    .sms-status-indicator.inactive {
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
    }

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ========== Activity List ========== */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s;
}

    .activity-item:hover {
        background: rgba(169, 191, 55, 0.05);
    }

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

    .activity-icon.success {
        background: rgba(16, 185, 129, 0.2);
        color: #10b981;
    }

    .activity-icon.warning {
        background: rgba(245, 158, 11, 0.2);
        color: #f59e0b;
    }

    .activity-icon.info {
        background: rgba(59, 130, 246, 0.2);
        color: #3b82f6;
    }

.activity-text {
    color: #e0e5ec;
    font-weight: 500;
    margin-bottom: 3px;
}

.activity-time {
    color: var(--admin-muted);
    font-size: 0.8rem;
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/*اضافه کردن استایل به سایر منوها و سایر بخش های صفحات*/
/* ========== Page Header ========== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

    .page-title i {
        color: var(--gold);
    }

.page-subtitle {
    color: var(--admin-muted);
    font-size: 0.9rem;
}

.page-stats {
    display: flex;
    gap: 10px;
}

.badge-unread {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
}

.badge-total {
    background: rgba(169, 191, 55, 0.2);
    color: var(--gold-light);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ========== Add Button ========== */
.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-gold-gradient);
    background: linear-gradient(135deg, #c2d84a, #a9bf37);
    color: #000;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

    .btn-add:hover {
        box-shadow: 0 10px 30px var(--gold-glow);
        transform: translateY(-2px);
        color: #000;
    }

/* ========== Filter Select ========== */
.filter-select {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: inherit;
    cursor: pointer;
}

/* ========== Table ========== */
.table-wrapper,
.messages-table-wrapper {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

    .admin-table thead {
        background: rgba(169, 191, 55, 0.05);
    }

    .admin-table th {
        padding: 15px 20px;
        text-align: right;
        color: var(--gold-light);
        font-weight: 700;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .admin-table td {
        padding: 12px 20px;
        border-bottom: 1px solid var(--admin-border);
        color: #e0e5ec;
    }

    .admin-table tbody tr {
        transition: all 0.3s;
    }

        .admin-table tbody tr:hover {
            background: rgba(169, 191, 55, 0.03);
        }

        .admin-table tbody tr.unread {
            background: rgba(239, 68, 68, 0.03);
        }

/* ========== User Cell ========== */
.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold-gold-gradient);
    background: linear-gradient(135deg, #c2d84a, #a9bf37);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}

/* ========== Status Badges ========== */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
}

    .status-badge.read {
        background: rgba(16, 185, 129, 0.2);
        color: #10b981;
    }

    .status-badge.unread-badge {
        background: rgba(239, 68, 68, 0.2);
        color: #ef4444;
    }

    .status-badge.active {
        background: rgba(16, 185, 129, 0.2);
        color: #10b981;
    }

    .status-badge.inactive {
        background: rgba(107, 114, 128, 0.2);
        color: #9ca3af;
    }

    .status-badge.pending {
        background: rgba(245, 158, 11, 0.2);
        color: #f59e0b;
    }

    .status-badge.reviewed {
        background: rgba(59, 130, 246, 0.2);
        color: #3b82f6;
    }

    .status-badge.approved {
        background: rgba(16, 185, 129, 0.2);
        color: #10b981;
    }

    .status-badge.rejected {
        background: rgba(239, 68, 68, 0.2);
        color: #ef4444;
    }

/* ========== Action Buttons ========== */
.action-btns {
    display: flex;
    gap: 5px;
}

.btn-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: rgba(169, 191, 55, 0.1);
    border: 1px solid transparent;
    color: var(--gold-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 0.9rem;
    text-decoration: none;
}

    .btn-icon:hover {
        background: rgba(169, 191, 55, 0.2);
        border-color: var(--gold);
    }

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

/* ========== App Count ========== */
.app-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ========== Message Preview ========== */
.message-preview {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/*استایل برای بارگذاری بخش مدارک در پنل ادمین*/
/* ========== File Upload ========== */
.file-upload-area {
    background: rgba(169, 191, 55, 0.05);
    border: 2px dashed var(--admin-border);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

    .file-upload-area:hover {
        border-color: var(--gold);
        background: rgba(169, 191, 55, 0.08);
    }

    .file-upload-area input[type="file"] {
        display: none;
    }

.file-upload-label {
    display: inline-block;
    background: var(--gold);
    color: #000;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
}

    .file-upload-label:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(169, 191, 55, 0.3);
    }

/* ========== Particles ========== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    animation: float 12s infinite;
    opacity: 0;
    box-shadow: 0 0 10px var(--gold-glow);
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-100px) scale(1.8);
        opacity: 0;
    }
}

