* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0066cc;
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.main-nav a {
    color: #666;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.main-nav a:hover {
    color: #0066cc;
}

.user-info {
    color: #666;
    margin-right: 1rem;
}

.btn-link {
    background: none;
    border: none;
    color: #0066cc;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

.btn-link:hover {
    text-decoration: underline;
}

.main {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.sidebar {
    width: 250px;
    background: white;
    border-right: 1px solid #e0e0e0;
    padding: 2rem 0;
}

.sidebar .nav-section {
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.sidebar h4 {
    color: #999;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.sidebar a {
    display: block;
    padding: 0.75rem 0.5rem;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 0.25rem;
}

.sidebar a:hover {
    background: #f5f5f5;
    color: #0066cc;
}

.content {
    flex: 1;
    padding: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #0066cc;
}

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

/* Buttons */
button, .btn {
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #0066cc;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #0052a3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #5a6268;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

button:disabled, .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

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

/* ============================================
   PROFILE PAGE - CARD DESIGN
   ============================================ */

/* Profile Cards Grid */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* Individual Info Card */
.info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.15);
    border-color: #0066cc;
}

.info-card-full {
    grid-column: 1 / -1;
}

/* Card Icon (Blue Circle) */
.info-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

/* Card Content */
.info-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-card-content label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0;
}

.info-card-content span {
    font-size: 1.1rem;
    color: #212529;
    font-weight: 500;
    line-height: 1.5;
}

/* Address Lines */
.address-lines {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.address-lines div {
    color: #495057;
    font-size: 1rem;
}

/* Enhanced Completion Indicator */
.completion-indicator {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border: 2px solid #0066cc;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.15);
    position: relative;
    overflow: hidden;
}

.completion-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, transparent 100%);
    border-radius: 0 0 0 100%;
}

.completion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.completion-header h5 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #212529;
}

.completion-percentage {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0066cc 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.completion-status {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.completion-status i {
    font-size: 1.25rem;
}

.completion-status.complete {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #28a745;
}

.completion-status.nearly-complete {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 2px solid #17a2b8;
}

.completion-status.incomplete {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 2px solid #ffc107;
}

/* Enhanced Profile Header */
.profile-header {
    position: relative;
    z-index: 1;
    margin-bottom: 3rem !important;
}

.profile-header::before {
    z-index: 0;
}

.profile-info {
    position: relative;
    z-index: 1;
}

.profile-details h2 {
    font-weight: 700;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .info-cards-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: 1.25rem;
    }

    .info-card-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.25rem;
    }
}

.auth-footer a {
    color: #0066cc;
    text-decoration: none;
}

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

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Utility classes */
.text-success {
    color: #28a745;
}

.text-warning {
    color: #ffc107;
}

.text-danger {
    color: #dc3545;
}

.text-center {
    text-align: center;
}

@media (max-width: 768px) {
    .main {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .content {
        padding: 1rem;
    }
}

