/* ========================================
   USER PANEL MASTER CSS
   Sabhi pages ke liye ek hi CSS
   ======================================== */

/* ---------- Layout & Structure ---------- */
.dashboard-layout {
    display: flex;
    min-height: 80vh;
}

.sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #eaeaea;
    padding: 30px 20px;
    flex-shrink: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.main-content {
    flex-grow: 1;
    padding: 40px;
    background: #f8f9fa;
}

/* ---------- Dashboard Header ---------- */
.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 28px;
    color: #333;
    margin: 0;
}

.dashboard-header p {
    color: #777;
    margin-top: 5px;
}

/* ---------- Form Cards ---------- */
.form-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    max-width: 600px;
}

.form-card.max-500 {
    max-width: 500px;
}

/* ---------- Form Groups ---------- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #667eea;
    outline: none;
}

.form-control[disabled] {
    background: #f8f9fa;
    cursor: not-allowed;
}

/* ---------- Buttons ---------- */
.btn-save {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-download {
    background: #28a745;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
}

.btn-download:hover {
    background: #218838;
    box-shadow: 0 2px 8px rgba(40, 167, 45, 0.3);
}

.btn-token {
    background: #ffc107;
    color: #333;
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.btn-token:hover {
    background: #e0a800;
}

/* ---------- Tables ---------- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.data-table th {
    background: #f1f3f5;
    padding: 15px;
    text-align: left;
    color: #555;
    font-weight: 600;
    border-bottom: 2px solid #eaeaea;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
    color: #444;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: #fbfbfb;
}

/* ---------- Status Badges ---------- */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

/* ---------- Alerts & Messages ---------- */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 10px;
    color: #888;
}

.empty-state h3 {
    margin-bottom: 10px;
}

/* ---------- Password Wrapper ---------- */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding: 12px;
    padding-right: 45px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
}

.password-wrapper input:focus {
    border-color: #ff9800;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2);
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 18px;
    user-select: none;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #ff9800;
}

/* ---------- Auth Pages (Login/Register/Forgot) ---------- */
.auth-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

.auth-container .form-group {
    margin-bottom: 20px;
}

.auth-container .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.auth-container .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s;
}

.auth-container .form-group input:focus {
    border-color: #ff9800;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2);
}

.login-btn,
.register-btn {
    width: 100%;
    padding: 12px;
    background-color: #ff9800;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.login-btn:hover,
.register-btn:hover {
    background-color: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.links-container {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.links-container p {
    margin-bottom: 10px;
    font-size: 14px;
}

.links-container a {
    color: #ff9800;
    text-decoration: none;
    font-weight: 500;
}

.links-container a:hover {
    text-decoration: underline;
}

.back-home {
    text-align: center;
    margin-top: 15px;
}

.back-home a {
    color: #999;
    text-decoration: none;
    font-size: 13px;
}

.back-home a:hover {
    color: #ff9800;
}

/* ---------- Address Hint ---------- */
.address-hint {
    color: #28a745;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* ---------- Info Text ---------- */
.info-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* ---------- Rating Message ---------- */
.rating-message {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-message.success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* ---------- Headings ---------- */
h2 {
    margin-bottom: 30px;
    color: #333;
}

h3 {
    margin-bottom: 15px;
    color: #333;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 20px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .data-table {
        font-size: 14px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px;
    }
}