/* ============================================
   VTU WEBSITE - DASHBOARD STYLESHEET
   Version: 1.0
   ============================================ */

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - 56px);
    background: #f4f6f9;
}

/* ===== SIDEBAR ===== */
.sidebar-wrapper {
    width: 280px;
    min-height: 100%;
    background: var(--dark-color);
    color: #fff;
    position: sticky;
    top: 0;
    height: calc(100vh - 56px);
    overflow-y: auto;
    flex-shrink: 0;
    transition: var(--transition);
}

.sidebar {
    padding: 20px 0;
}

/* Sidebar User Info */
.sidebar-user {
    padding: 0 20px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-user .user-avatar {
    margin-bottom: 10px;
}

.sidebar-user .user-avatar img {
    border: 3px solid rgba(255,255,255,0.2);
    object-fit: cover;
    width: 60px;
    height: 60px;
}

.sidebar-user .user-info h6 {
    color: #fff;
    margin: 0;
    font-weight: 600;
}

.sidebar-user .user-info small {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}

/* Sidebar Wallet */
.sidebar-wallet {
    background: rgba(255,255,255,0.1);
    margin: 15px 20px;
    padding: 15px;
    border-radius: 8px;
}

.sidebar-wallet .wallet-label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    display: block;
}

.sidebar-wallet .wallet-amount {
    font-size: 20px;
    font-weight: 700;
    color: #ffc107;
    display: block;
}

/* Sidebar Menu */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.sidebar-menu li {
    margin: 2px 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-size: 14px;
}

.sidebar-menu li a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-left-color: #ffc107;
}

.sidebar-menu li a.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-left-color: #ffc107;
}

.sidebar-menu li a i {
    width: 25px;
    font-size: 16px;
    margin-right: 10px;
}

.sidebar-menu li a .badge {
    margin-left: auto;
}

.sidebar-menu .divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 10px 20px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 20px;
    overflow-x: hidden;
}

/* ===== DASHBOARD CONTENT ===== */
.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== STAT CARDS ===== */
.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: var(--transition);
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.stat-card .stat-number {
    font-size: 28px;
    font-weight: 700;
    margin: 5px 0;
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* ===== WALLET BALANCE CARD ===== */
.wallet-balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.wallet-balance-card .balance-label {
    font-size: 14px;
    opacity: 0.8;
}

.wallet-balance-card .balance-amount {
    font-size: 40px;
    font-weight: 700;
    margin: 10px 0;
}

.wallet-balance-card .balance-sub {
    font-size: 14px;
    opacity: 0.8;
}

/* ===== QUICK ACTION CARDS ===== */
.quick-action {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    border: 2px solid transparent;
    display: block;
}

.quick-action:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.quick-action .action-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.quick-action .action-title {
    font-weight: 600;
    margin: 0;
}

.quick-action .action-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 5px 0 0;
}

/* ===== SETTINGS SECTION ===== */
.settings-section {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.settings-section .section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f4f6f9;
}

/* ===== TRANSACTION ITEMS ===== */
.transaction-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    border-left: 4px solid var(--text-muted);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.transaction-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.transaction-item .txn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.transaction-item .txn-info {
    flex: 1;
}

.transaction-item .txn-info h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.transaction-item .txn-info small {
    color: var(--text-muted);
    font-size: 12px;
}

.transaction-item .txn-amount {
    font-weight: 700;
    font-size: 16px;
}

/* ===== STATUS BADGES ===== */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.successful {
    background: #d4edda;
    color: #155724;
}

.status-badge.success {
    background: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.failed {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.refunded {
    background: #e2e3e5;
    color: #383d41;
}

.status-badge.confirmed {
    background: #d4edda;
    color: #155724;
}

/* ===== PROFILE PAGE ===== */
.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.profile-upload-btn {
    position: relative;
    overflow: hidden;
}

.profile-upload-btn input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* ===== NOTIFICATION ITEMS ===== */
.notification-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #f0f7ff;
}

.notification-item.unread:hover {
    background: #e3f0ff;
}

.notification-item .notification-icon {
    margin-right: 15px;
    font-size: 20px;
    width: 40px;
    text-align: center;
}

.notification-item .notification-content {
    flex: 1;
}

.notification-item .notification-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.notification-item .notification-message {
    color: var(--text-muted);
    font-size: 14px;
}

.notification-item .notification-time {
    color: #adb5bd;
    font-size: 12px;
    margin-top: 5px;
}

.notification-item .notification-actions {
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

/* ===== NETWORK CARDS ===== */
.network-card {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

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

.network-card.selected {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.network-card .network-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.network-card .network-name {
    font-size: 13px;
    font-weight: 600;
}

/* ===== PLAN CARDS ===== */
.plan-card {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 10px;
}

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

.plan-card.selected {
    border-color: var(--success-color);
    background: rgba(40, 167, 69, 0.05);
}

.plan-card .plan-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.plan-card .plan-details {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

.plan-card .plan-price {
    color: var(--success-color);
    font-weight: 600;
}

/* ===== EXAM CARDS ===== */
.exam-card {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

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

.exam-card.selected {
    border-color: var(--success-color);
    background: rgba(40, 167, 69, 0.05);
}

.exam-card .exam-icon {
    font-size: 28px;
    margin-bottom: 5px;
}

.exam-card .exam-name {
    font-weight: 600;
    font-size: 14px;
}

.exam-card .exam-price {
    font-size: 13px;
    color: var(--success-color);
    font-weight: 600;
}

/* ===== PAYMENT METHOD CARDS ===== */
.payment-method-card {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.payment-method-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.payment-method-card.selected {
    border-color: var(--success-color);
    background: rgba(40, 167, 69, 0.05);
}

.payment-method-card i {
    display: block;
    margin-bottom: 5px;
}

/* ===== QUICK AMOUNTS ===== */
.quick-amounts .btn {
    margin: 2px;
}

/* ===== REFERRAL BOX ===== */
.referral-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* ===== ADMIN CARDS ===== */
.admin-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.admin-card .card-header {
    border-bottom: 2px solid #f4f6f9;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* ===== ADMIN HEADER ===== */
.admin-header {
    background: #1a2332;
    color: #fff;
}

.admin-header .navbar-brand {
    color: #fff;
}

.admin-header .nav-link {
    color: rgba(255,255,255,0.7);
}

.admin-header .nav-link:hover {
    color: #fff;
}

.admin-sidebar {
    background: #1a2332;
    min-height: calc(100vh - 56px);
}

.admin-sidebar .sidebar-menu li a {
    color: rgba(255,255,255,0.7);
}

.admin-sidebar .sidebar-menu li a:hover,
.admin-sidebar .sidebar-menu li a.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* ===== ADMIN CONTENT ===== */
.admin-content {
    padding: 20px;
    background: #f4f6f9;
    min-height: calc(100vh - 56px);
}

/* ===== STAT BOXES ===== */
.stat-box {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box .stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.stat-box .stat-number {
    font-size: 28px;
    font-weight: 700;
}

.stat-box .stat-label {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== TICKET MESSAGES ===== */
.message-item {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
}

.user-message {
    background: #f8f9fa;
    border-left: 4px solid var(--text-muted);
}

.admin-message {
    background: #e3f0ff;
    border-left: 4px solid var(--primary-color);
}

.message-item .message-header {
    margin-bottom: 5px;
}

.message-item .message-body {
    color: #333;
}

.ticket-messages::-webkit-scrollbar {
    width: 5px;
}

.ticket-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.ticket-messages::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}