/* =============================================
   ING INFOMIX - User Section Styles
   Color Scheme: #0066FF, #161616, #FBFBFB
   ============================================= */

:root {
    --user-primary: #0066FF;
    --user-dark: #161616;
    --user-light: #FBFBFB;
}

/* ===== User Auth Pages ===== */
.auth-wrapper {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 50px;
    background: linear-gradient(135deg, #161616 0%, #252525 100%);
}

.auth-container {
    width: 100%;
    max-width: 450px;
    background: white;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 28px;
    color: #000;
    margin-bottom: 10px;
}

.auth-header p {
    color: #666;
    font-size: 14px;
}

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

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.auth-form input {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid #e0e0e0;
    font-size: 15px;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    border-color: var(--sky-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.auth-form input.error {
    border-color: #ff4444;
}

.auth-form .error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
}

.auth-form .btn-auth {
    width: 100%;
    padding: 15px;
    background: var(--bright-yellow);
    color: #000;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-form .btn-auth:hover {
    background: #e6c200;
    transform: translateY(-2px);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.auth-footer a {
    color: var(--sky-blue);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.auth-divider span {
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider p {
    padding: 0 15px;
    color: #999;
    font-size: 13px;
}

/* ===== User Dashboard ===== */
.user-dashboard {
    padding-top: 90px;
    min-height: 100vh;
    background: #f5f5f5;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.dashboard-header {
    background: linear-gradient(135deg, var(--black) 0%, #1a1a1a 100%);
    padding: 40px;
    margin-bottom: 30px;
    color: white;
}

.dashboard-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.dashboard-header p {
    color: #ccc;
    font-size: 14px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* ===== Sidebar ===== */
.dashboard-sidebar {
    background: white;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-user {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.sidebar-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--sky-blue), var(--bright-yellow));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 32px;
    font-weight: bold;
    color: white;
}

.sidebar-user h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.sidebar-user p {
    color: #666;
    font-size: 13px;
}

.sidebar-nav {
    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 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--bright-yellow);
    color: #000;
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
}

.sidebar-nav .logout-link {
    color: #ff4444;
    border-top: 1px solid #eee;
    margin-top: 15px;
    padding-top: 15px;
}

.sidebar-nav .logout-link:hover {
    background: #ff4444;
    color: white;
}

/* ===== Dashboard Content ===== */
.dashboard-content {
    background: white;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.content-header h2 {
    font-size: 24px;
    color: #333;
}

/* ===== Stats Cards ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #f8f8f8, #fff);
    padding: 25px;
    border-left: 4px solid var(--sky-blue);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stat-card.yellow {
    border-left-color: var(--bright-yellow);
}

.stat-card.green {
    border-left-color: #22c55e;
}

.stat-card.purple {
    border-left-color: #8b5cf6;
}

.stat-card h3 {
    font-size: 32px;
    color: #333;
    margin-bottom: 5px;
}

.stat-card p {
    color: #666;
    font-size: 14px;
}

/* ===== Service Cards ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.service-card {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 25px;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--sky-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.service-icon {
    width: 50px;
    height: 50px;
    background: var(--bright-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #000;
}

.service-card h3 {
    font-size: 18px;
    color: #333;
}

.service-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.service-packages {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.service-packages span {
    font-size: 13px;
    color: #999;
}

.view-packages {
    display: inline-block;
    margin-top: 15px;
    color: var(--sky-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.view-packages:hover {
    text-decoration: underline;
}

/* ===== Price Cards ===== */
.price-card {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.price-card.featured {
    border-color: var(--bright-yellow);
    transform: scale(1.02);
}

.price-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bright-yellow);
    color: #000;
    padding: 5px 20px;
    font-size: 12px;
    font-weight: 600;
}

.price-card:hover {
    border-color: var(--sky-blue);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.price-card h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.price-card .brief {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.price-card .price {
    margin: 25px 0;
}

.price-card .mrp {
    text-decoration: line-through;
    color: #999;
    font-size: 18px;
}

.price-card .discount {
    background: #22c55e;
    color: white;
    padding: 3px 10px;
    font-size: 12px;
    margin-left: 10px;
}

.price-card .total {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--sky-blue);
    margin-top: 10px;
}

.price-card .duration {
    color: #666;
    font-size: 14px;
}

.price-card .features {
    text-align: left;
    margin: 25px 0;
    padding: 0;
    list-style: none;
}

.price-card .features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #555;
}

.price-card .features li::before {
    content: '✓';
    color: #22c55e;
    margin-right: 10px;
    font-weight: bold;
}

.price-card .btn-inquire {
    width: 100%;
    padding: 14px;
    background: var(--sky-blue);
    color: white;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-card .btn-inquire:hover {
    background: #0284c7;
}

/* ===== Inquiry Table ===== */
.inquiry-table {
    width: 100%;
    border-collapse: collapse;
}

.inquiry-table th,
.inquiry-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.inquiry-table th {
    background: #f8f8f8;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.inquiry-table td {
    font-size: 14px;
    color: #555;
}

.inquiry-table tr:hover {
    background: #fafafa;
}

/* ===== Badges ===== */
.badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-primary {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-secondary {
    background: #f3f4f6;
    color: #374151;
}

/* ===== Alerts ===== */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.alert-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}

/* ===== Forms ===== */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--sky-blue);
    outline: none;
}

select.form-control {
    appearance: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E") no-repeat right 15px center;
    background-color: white;
    padding-right: 40px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ===== Buttons ===== */
.btn-user {
    display: inline-block;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-user-primary {
    background: var(--sky-blue);
    color: white;
}

.btn-user-primary:hover {
    background: #0284c7;
}

.btn-user-secondary {
    background: var(--bright-yellow);
    color: #000;
}

.btn-user-secondary:hover {
    background: #e6c200;
}

.btn-user-outline {
    background: transparent;
    border: 2px solid var(--sky-blue);
    color: var(--sky-blue);
}

.btn-user-outline:hover {
    background: var(--sky-blue);
    color: white;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
    margin-bottom: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        position: static;
        margin-bottom: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .auth-container {
        padding: 30px 20px;
    }
    
    .dashboard-header {
        padding: 25px;
    }
    
    .dashboard-content {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .content-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .inquiry-table {
        display: block;
        overflow-x: auto;
    }
}

/* ===== Inquiry Detail ===== */
.inquiry-detail {
    background: #f8f8f8;
    padding: 25px;
    margin-top: 20px;
}

.inquiry-detail-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.inquiry-detail-row:last-child {
    border-bottom: none;
}

.inquiry-detail-label {
    width: 150px;
    font-weight: 600;
    color: #333;
}

.inquiry-detail-value {
    flex: 1;
    color: #555;
}

/* ===== Password Toggle ===== */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

.password-toggle:hover {
    color: var(--sky-blue);
}

/* ===== Loading Spinner ===== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================
   USER SECTION MOBILE RESPONSIVENESS
   ============================================= */

/* ===== Tablet (max-width: 1024px) ===== */
@media (max-width: 1024px) {
    .user-dashboard {
        flex-direction: column;
    }
    
    .user-sidebar {
        width: 100%;
        position: static;
        height: auto;
    }
    
    .user-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Mobile (max-width: 768px) ===== */
@media (max-width: 768px) {
    /* Auth Pages */
    .auth-wrapper {
        padding: 80px 15px 30px;
    }
    
    .auth-container {
        padding: 30px 20px;
        max-width: 100%;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .auth-form .form-group {
        margin-bottom: 15px;
    }
    
    .auth-form input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .btn-auth {
        padding: 14px;
        font-size: 15px;
    }
    
    /* User Dashboard */
    .user-sidebar {
        padding: 15px;
    }
    
    .sidebar-nav a {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .user-content {
        padding: 15px;
    }
    
    .page-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 22px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card h3 {
        font-size: 28px;
    }
    
    /* Service Cards */
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        padding: 25px 20px;
    }
    
    .pricing-card .price {
        font-size: 28px;
    }
    
    /* Forms */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        width: 100%;
    }
    
    /* Tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    /* Inquiry Details */
    .inquiry-detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .inquiry-detail-label {
        width: 100%;
        font-size: 12px;
        color: #888;
    }
    
    .inquiry-detail-value {
        font-size: 14px;
    }
    
    /* User Cards */
    .user-card {
        padding: 20px;
    }
    
    .user-card-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .user-avatar-large {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
}

/* ===== Mobile Small (max-width: 480px) ===== */
@media (max-width: 480px) {
    .auth-wrapper {
        padding: 70px 10px 20px;
    }
    
    .auth-container {
        padding: 25px 15px;
    }
    
    .auth-header h1 {
        font-size: 22px;
    }
    
    .btn-auth {
        padding: 12px;
        font-size: 14px;
    }
    
    .user-content {
        padding: 10px;
    }
    
    .page-header h1 {
        font-size: 20px;
    }
    
    .stat-card h3 {
        font-size: 24px;
    }
    
    .pricing-card .price {
        font-size: 24px;
    }
    
    /* Buttons */
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 10px 15px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 10px;
    }
}

