/* 
 * PropInvest - Real Estate Investment Platform
 * Mobile-First Styles
 */

:root {
    --primary-color: #0f3460;
    --primary-dark: #1a1a2e;
    --primary-light: #16213e;
    --secondary-color: #0ea5e9;
    --accent-color: #ffc107;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gradient-primary: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-gold: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: var(--dark-color);
    font-size: 14px;
    line-height: 1.6;
}

/* Top Header */
.top-header {
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.top-header .logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffc107;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-header .logo i {
    font-size: 1.5rem;
}

.wallet-badge {
    background: var(--gradient-gold);
    color: #1a1a2e;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Main Content */
.main-content {
    padding: 20px 0 100px;
    min-height: 100vh;
}

.main-content.logged-in {
    padding-top: 80px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 12px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 4px 12px;
    transition: all 0.3s ease;
}

.bottom-nav .nav-item i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.bottom-nav .nav-item.active,
.bottom-nav .nav-item:hover {
    color: #ffc107;
}

.bottom-nav .nav-item.active i {
    transform: scale(1.1);
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 16px;
}

.card-header {
    background: var(--gradient-primary);
    color: white;
    padding: 16px 20px;
    border: none;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 20px;
    color: white;
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 12px;
}

.stats-card .icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stats-card .icon.primary {
    background: var(--gradient-primary);
}

.stats-card .icon.success {
    background: var(--gradient-success);
}

.stats-card .icon.secondary {
    background: var(--gradient-secondary);
}

.stats-card .icon.warning {
    background: var(--gradient-gold);
}

.stats-card .info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--dark-color);
}

.stats-card .info p {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-warning {
    background: var(--gradient-gold);
    color: #1a1a2e;
}

.btn-warning:hover {
    background: #ffca28;
    color: #1a1a2e;
}

.btn-success {
    background: var(--gradient-success);
    color: white;
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* Forms */
.form-control {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 2px solid #e2e8f0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.input-group-text {
    background: var(--light-color);
    border: 2px solid #e2e8f0;
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-xl);
}

.auth-card .logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-card .logo i {
    font-size: 3rem;
    color: #ffc107;
}

.auth-card .logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 8px;
}

.auth-card h2 {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 24px;
}

/* Tables */
.table {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table th {
    background: var(--light-color);
    font-weight: 600;
    color: var(--dark-color);
    padding: 14px 16px;
    border: none;
}

.table td {
    padding: 14px 16px;
    vertical-align: middle;
    border-color: #f1f5f9;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.75rem;
}

.badge.bg-success {
    background: var(--gradient-success) !important;
}

.badge.bg-warning {
    background: var(--gradient-gold) !important;
    color: #1a1a2e;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%) !important;
}

.badge.bg-primary {
    background: var(--gradient-primary) !important;
}

/* Alerts */
.alert {
    border-radius: var(--radius-md);
    padding: 14px 20px;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Dashboard Sections */
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 24px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.quick-action-btn {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    text-decoration: none;
    color: var(--dark-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    color: #ffc107;
}

.quick-action-btn i {
    font-size: 1.75rem;
    margin-bottom: 8px;
    display: block;
}

.quick-action-btn span {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Transaction List */
.transaction-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-item .info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.transaction-item .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.transaction-item .icon.credit {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.transaction-item .icon.debit {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.transaction-item .amount {
    font-weight: 600;
}

.transaction-item .amount.credit {
    color: var(--success-color);
}

.transaction-item .amount.debit {
    color: var(--danger-color);
}

/* Profile */
.profile-header {
    background: var(--gradient-primary);
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: white;
    margin-bottom: 20px;
}

.profile-header .avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 193, 7, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 12px;
    color: #ffc107;
}

.profile-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.profile-header p {
    opacity: 0.8;
    margin: 4px 0 0;
    font-size: 0.9rem;
}

/* Referral Card */
.referral-card {
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 20px;
    color: white;
    text-align: center;
    margin-bottom: 16px;
}

.referral-card h4 {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.referral-card .code {
    font-size: 1.5rem;
    font-weight: 700;
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    display: inline-block;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: white;
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.5;
    margin-bottom: 16px;
}

.empty-state p {
    opacity: 0.8;
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .auth-card {
        padding: 24px 20px;
    }

    .stats-card {
        padding: 14px;
    }

    .stats-card .icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .stats-card .info h4 {
        font-size: 1.1rem;
    }
}