:root {
    --primary-color: #1a365d;
    --primary-light: #2c5282;
    --primary-dark: #0d1b2a;
    --accent-color: #38b2ac;
    --accent-light: #4fd1c5;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --error-color: #e53e3e;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.025em;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(56, 178, 172, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
}

.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background: #c53030;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-error {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.alert-success {
    background: #c6f6d5;
    color: #276749;
    border: 1px solid #9ae6b4;
}

.alert-info {
    background: #bee3f8;
    color: #2b6cb0;
    border: 1px solid #90cdf4;
}

.alert-warning {
    background: #feebc8;
    color: #c05621;
    border: 1px solid #fbd38d;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.dashboard-layout {
    min-height: 100vh;
    background: var(--bg-secondary);
}

.navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.navbar-brand .logo-icon {
    width: 40px;
    height: 40px;
}

.navbar-brand .logo-icon svg {
    width: 24px;
    height: 24px;
}

.navbar-brand .logo-text {
    font-size: 1.25rem;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--bg-tertiary);
}

.nav-link.active {
    color: var(--primary-color);
    background: var(--bg-tertiary);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    text-align: right;
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.main-content {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #3182ce, #63b3ed);
}

.stat-icon.green {
    background: linear-gradient(135deg, #38a169, #68d391);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #805ad5, #b794f4);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #dd6b20, #f6ad55);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.stat-change {
    font-size: 0.8125rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: var(--error-color);
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-secondary);
}

td {
    color: var(--text-primary);
    font-size: 0.9375rem;
}

tr:hover {
    background: var(--bg-secondary);
}

tr.clickable-row {
    cursor: pointer;
    transition: all 0.2s ease;
}

tr.clickable-row:hover {
    background: var(--bg-tertiary);
    transform: translateX(2px);
}

tr.clickable-row:active {
    background: var(--border-color);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.badge-success {
    background: #c6f6d5;
    color: #276749;
}

.badge-warning {
    background: #feebc8;
    color: #c05621;
}

.badge-info {
    background: #bee3f8;
    color: #2b6cb0;
}

.badge-admin {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--accent-color);
}

@media (max-width: 768px) {
    .login-card {
        padding: 2rem;
    }
    
    .navbar {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .user-info {
        display: none;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* User Dropdown Menu */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
}

.user-dropdown-toggle:hover {
    background: var(--bg-tertiary);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown-info {
    text-align: left;
}

.user-dropdown-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.user-dropdown-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.user-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-dropdown.open .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.dropdown-item.danger {
    color: var(--error-color);
}

.dropdown-item.danger:hover {
    background: #fed7d7;
}

/* Profile Page */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 2.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.profile-info p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .user-dropdown-info {
        display: none;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

/* ==========================================
   RESPONSIVE STYLES FOR PWA / MOBILE
   ========================================== */

/* Small phones */
@media (max-width: 480px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-card {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .login-header h1 {
        font-size: 1.25rem;
    }
    
    .form-input {
        padding: 0.75rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn {
        padding: 0.75rem 1rem;
    }
    
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    .navbar-brand .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .navbar-brand .logo-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .navbar-brand .logo-text {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 0.75rem;
    }
    
    .page-title {
        font-size: 1.375rem;
    }
    
    .page-subtitle {
        font-size: 0.875rem;
    }
    
    .card {
        padding: 1rem;
        border-radius: var(--radius-md);
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .stat-value {
        font-size: 1.375rem;
    }
    
    .stat-label {
        font-size: 0.8125rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .badge {
        padding: 0.2rem 0.5rem;
        font-size: 0.6875rem;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .user-dropdown-toggle {
        padding: 0.375rem 0.5rem;
        gap: 0.5rem;
    }
    
    .dropdown-arrow {
        width: 14px;
        height: 14px;
    }
    
    .user-dropdown-menu {
        min-width: 160px;
    }
    
    .dropdown-item {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .dropdown-item svg {
        width: 16px;
        height: 16px;
    }
}

/* Tablets and larger phones */
@media (max-width: 600px) {
    .navbar-nav {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .card-header .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Medium screens */
@media (min-width: 601px) and (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Large screens */
@media (min-width: 901px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
    }
    
    .form-input {
        min-height: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .user-dropdown-toggle {
        min-height: 44px;
    }
}

/* Safe area insets for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
    .navbar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .main-content {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
    
    .login-container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* Standalone PWA mode adjustments */
@media (display-mode: standalone) {
    body {
        -webkit-user-select: none;
        user-select: none;
    }
    
    .navbar {
        padding-top: max(1rem, env(safe-area-inset-top));
    }
}

/* Print styles - hide non-essential elements */
@media print {
    .navbar,
    .user-dropdown,
    .btn,
    .actions {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Quick Start Guide Styles */
.quick-start-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.quick-start-step {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.step-content a:hover {
    text-decoration: underline;
}

/* Button small variant */
.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.85rem;
}

/* Card header with button */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================================
   PWA Install Guide Styles
   ========================================= */

.install-guide-card {
    max-width: 480px;
}

.install-header {
    text-align: center;
    margin-bottom: 2rem;
}

.install-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.install-header p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.install-instructions {
    margin-bottom: 1.5rem;
}

.install-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.install-step:last-child {
    border-bottom: none;
}

.install-step .step-content {
    flex: 1;
}

.install-step .step-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
}

.install-step .step-content p strong {
    color: var(--text-primary);
}

.share-icon-hint,
.menu-icon-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.share-icon-hint svg,
.menu-icon-hint svg {
    color: var(--primary-color);
}

.action-preview {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.action-preview svg {
    color: var(--primary-color);
}

.install-benefits {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.install-benefits h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.install-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.install-benefits li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.375rem 0;
}

.install-benefits li svg {
    color: var(--success-color);
    flex-shrink: 0;
}

.install-actions {
    margin-bottom: 1.5rem;
}

.install-actions .btn {
    width: 100%;
}

.install-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.install-footer p {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* Mobile-optimized install guide to fit without scrolling */
@media (max-width: 480px) {
    .login-container {
        padding: 0.5rem;
        align-items: flex-start;
        min-height: auto;
    }
    
    .install-guide-card {
        padding: 1rem;
        margin-top: 0;
    }
    
    .install-guide-card .logo-container {
        margin-bottom: 0.5rem;
    }
    
    .install-guide-card .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .install-guide-card .logo-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .install-guide-card .logo-text {
        font-size: 1rem;
    }
    
    .install-header {
        margin-bottom: 0.5rem;
    }
    
    .install-header h1 {
        font-size: 1.125rem;
        margin-bottom: 0.125rem;
    }
    
    .install-header p {
        font-size: 0.75rem;
    }
    
    .install-instructions {
        margin-bottom: 0.5rem;
    }
    
    .install-step {
        padding: 0.375rem 0;
        gap: 0.5rem;
    }
    
    .install-step .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    
    .install-step .step-content p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .share-icon-hint,
    .menu-icon-hint {
        margin-top: 0.375rem;
        padding: 0.375rem 0.5rem;
    }
    
    .share-icon-hint svg,
    .menu-icon-hint svg {
        width: 18px;
        height: 18px;
    }
    
    .action-preview {
        margin-top: 0.375rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
    }
    
    .action-preview svg {
        width: 14px;
        height: 14px;
    }
    
    .install-benefits {
        display: none;
    }
    
    .install-actions {
        margin-bottom: 0.5rem;
    }
    
    .install-actions .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .install-footer {
        padding-top: 0.5rem;
    }
    
    .install-footer p {
        font-size: 0.625rem;
    }
    
    /* iOS-specific: bottom-anchored layout with more spacing */
    .ios .login-container {
        min-height: 100vh;
        min-height: 100dvh; /* Use dynamic viewport height for iOS */
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding-bottom: env(safe-area-inset-bottom, 16px);
    }
    
    .ios .install-guide-card {
        display: flex;
        flex-direction: column;
        flex: 1;
        max-height: none;
    }
    
    .ios .install-flow {
        margin-top: auto;
    }
    
    /* More spacing between steps on iOS */
    .ios .install-step {
        padding: 0.75rem 0;
        border-bottom: none; /* Remove base border-bottom to prevent double borders */
    }
    
    .ios .install-step + .install-step {
        margin-top: 0.25rem;
        border-top: 1px solid var(--border-color);
        padding-top: 0.75rem;
    }
    
    .ios .install-actions {
        margin-top: 1rem;
    }
    
    .ios .install-footer {
        margin-top: 0.75rem;
    }
}

/* Horoscope Section Styles */
.horoscope-card {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.horoscope-card .card-title {
    display: flex;
    align-items: center;
    color: var(--primary-color);
}

.horoscope-display {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.horoscope-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.zodiac-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, #818cf8 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-transform: capitalize;
}

.horoscope-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.horoscope-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    margin: 0;
}

.horoscope-text.horoscope-unavailable {
    color: var(--text-muted);
    font-style: italic;
    border-left-color: var(--text-muted);
}

.stock-suggestion {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.stock-suggestion-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--success-color);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.stock-suggestion-ticker {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.ticker-symbol {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
}

.ticker-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stock-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--spacing-sm);
    margin-bottom: 0;
    font-style: italic;
}

.horoscope-setup {
    text-align: center;
    padding: var(--spacing-lg);
}

.horoscope-setup-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color) 0%, #818cf8 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.horoscope-setup-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.horoscope-setup h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.horoscope-setup p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.birthdate-form {
    max-width: 300px;
    margin: 0 auto;
}

.birthdate-form .form-group {
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.birthdate-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.birthdate-form input[type="date"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
}

.birthdate-form input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.birthdate-form .btn {
    width: 100%;
}
