/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    min-height: 100vh;
    color: #f8f8f8;
}

.landing-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.glass-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 600px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.logo-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
    border: 3px solid #00ffff;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #00ffff, #0088ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-direction: column;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #0088ff, #00ffff);
    color: #0f0f0f;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 136, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex: 1;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.feature {
    text-align: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #00ffff;
    font-weight: 600;
    font-size: 0.9rem;
}

input, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
}

input:focus, select:focus {
    outline: none;
    border-color: #0088ff;
    box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.3);
}

.auth-form {
    margin-top: 1rem;
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
    color: #ccc;
    font-size: 0.9rem;
}

.auth-link a {
    color: #00ffff;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(255, 99, 71, 0.2);
    border: 1px solid rgba(255, 99, 71, 0.5);
    color: #ff6347;
}

.alert-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #4caf50;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
    color: #ffc107;
}

/* Dashboard Styles */
.dashboard-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}

.dashboard-header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.header-left h1 {
    color: #00ffff;
    font-size: 1.2rem;
}

.user-plan {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.user-plan.free {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.user-plan.pro {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.receipts-count {
    color: #ccc;
    margin-right: 0.5rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.btn-logout {
    background: rgba(255, 99, 71, 0.2);
    color: #ff6347;
    border: 1px solid rgba(255, 99, 71, 0.5);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-logout:hover {
    background: rgba(255, 99, 71, 0.3);
}

.dashboard-main {
    padding: 1rem;
}

.dashboard-content {
    max-width: 100%;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card h3 {
    font-size: 1.5rem;
    color: #00ffff;
    margin-bottom: 0.25rem;
}

.stat-card p {
    color: #ccc;
    font-size: 0.8rem;
}

.receipts-list h3 {
    margin-bottom: 0.5rem;
    color: #00ffff;
    font-size: 1.1rem;
}

.receipts-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.8rem;
}

.receipts-table th,
.receipts-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.receipts-table th {
    background: rgba(255, 255, 255, 0.1);
    color: #00ffff;
}

.btn-copy {
    background: rgba(0, 136, 255, 0.2);
    color: #0088ff;
    border: 1px solid rgba(0, 136, 255, 0.5);
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.btn-view {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.5);
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Receipt Form Styles */
.items-section {
    margin-bottom: 1rem;
}

.items-section h3 {
    margin-bottom: 0.5rem;
    color: #00ffff;
    font-size: 1rem;
}

.item-row {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.item-row input {
    flex: 1;
    min-width: 80px;
}

.btn-remove-item {
    background: rgba(255, 99, 71, 0.2);
    color: #ff6347;
    border: 1px solid rgba(255, 99, 71, 0.5);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.7rem;
    margin-left: 0.25rem;
    flex-shrink: 0;
}

.btn-remove-item:hover {
    background: rgba(255, 99, 71, 0.3);
}

/* Receipt View Styles */
.customer-view {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}

.receipt-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}

.receipt-container {
    max-width: 600px;
    width: 100%;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: #1a1a1a;
    border: 2px solid #00ffff;
}

.receipt-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #00ffff;
}

.receipt-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: #00ffff;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.items-table th,
.items-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #444;
}

.items-table th {
    background: rgba(255, 255, 255, 0.1);
    color: #00ffff;
}

.receipt-total {
    text-align: right;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 2px solid #00ffff;
}

.receipt-total h3 {
    font-size: 1.2rem;
    margin: 0;
    color: #00ffff;
}

.receipt-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #444;
    color: #ccc;
    font-size: 0.7rem;
}

/* Floating Upgrade Button */
.floating-upgrade {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
    margin-bottom: 1rem; /* Add this line to prevent overlap */
}

.btn-upgrade {
    background: linear-gradient(45deg, #ff6b6b, #ffd700);
    color: #0f0f0f;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.4);
}

.upgrade-icon {
    font-size: 1rem;
}

/* Mobile-specific fix */
@media (max-width: 767px) {
    .dashboard-main {
        padding-bottom: 100px; /* Space for floating button */
    }
    
    .receipts-list {
        padding-bottom: 2rem;
    }
}

/* Responsive */
@media (min-width: 768px) {
    .landing-page {
        padding: 2rem;
    }
    
    .glass-container {
        padding: 2rem;
        max-width: 600px;
    }
    
    .logo {
        width: 120px;
        height: 120px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: row;
        gap: 1rem;
    }
    
    .btn {
        padding: 1rem 2rem;
        width: auto;
    }
    
    .dashboard-header {
        padding: 1rem 2rem;
        flex-wrap: nowrap;
    }
    
    .header-left h1 {
        font-size: 1.5rem;
    }
    
    .receipts-count {
        font-size: 0.9rem;
    }
    
    .dashboard-main {
        padding: 2rem;
    }
    
    .stats-grid {
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .receipts-table {
        font-size: 1rem;
    }
    
    .receipts-table th,
    .receipts-table td {
        padding: 1rem;
    }
    
    .item-row {
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    
    .btn-remove-item {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .receipt-container {
        padding: 2rem;
    }
    
    .receipt-header h1 {
        font-size: 2rem;
    }
    
    .items-table {
        font-size: 1rem;
    }
    
    .receipt-total h3 {
        font-size: 1.5rem;
    }
    
    .floating-upgrade {
        bottom: 2rem;
        right: 2rem;
    }
}