/* QR Generator System - Main Stylesheet */

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

:root {
    --primary-color: #2563EB;
    --primary-dark: #1E40AF;
    --secondary-color: #ffffff;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --bg-light: #f8f9fa;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: transparent;
    min-height: 100vh;
    color: var(--text-color);
}

/* Authentication Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.auth-box {
    background: transparent;
    padding: 40px;
    border-radius: 20px;
    box-shadow: none;
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--border-color);
}

.branding {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: transparent;
    color: var(--primary-color);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

/* Override for dashboard header - no border, no padding, aligned with buttons */
.dashboard-header .branding {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    border-radius: 0 !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0;
}

.branding h1 {
    margin: 0;
    font-size: 1.8em;
    font-weight: bold;
}

.branding a {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s;
}

.branding a:hover {
    opacity: 0.8;
}

.branding img.logo {
    height: 40px;
    width: auto;
    vertical-align: middle;
    object-fit: contain;
}


.branding p {
    margin: 10px 0 0 0;
    opacity: 0.9;
    font-size: 0.9em;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-color);
}

.subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 0.95em;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95em;
}

.required {
    color: var(--error-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s;
    background-color: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

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

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8em;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

.trial-info {
    margin-top: 10px;
    font-size: 0.85em;
    color: var(--text-light);
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9em;
}

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

/* Dashboard */
.dashboard-container {
    min-height: 100vh;
    background: transparent;
}

.dashboard-header {
    background: transparent;
    padding: 15px 25px;
    box-shadow: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    gap: 20px;
    min-height: 60px;
}

/* Dashboard header branding - consolidated rules */
.dashboard-header .branding-link {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    color: inherit !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    cursor: pointer;
}

.dashboard-header .branding-link:hover {
    opacity: 0.8;
}

.dashboard-header .branding h1 {
    font-size: 1.3em;
    margin: 0;
    color: var(--primary-color);
}

.dashboard-header .branding img.logo {
    height: 35px;
    width: auto;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.user-nav {
    display: flex;
    gap: 8px;
}

.dashboard-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h2 {
    color: var(--text-color);
}

.subscription-card {
    background: transparent;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: none;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.subscription-info h3 {
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 1.1em;
}

.trial-badge,
.active-badge,
.expired-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin: 10px 0;
}

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

.active-badge {
    background: #d1fae5;
    color: #065f46;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: transparent;
    padding: 15px;
    border-radius: 10px;
    box-shadow: none;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.85em;
}

.section {
    background: transparent;
    padding: 20px;
    border-radius: 10px;
    box-shadow: none;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section h2 {
    color: var(--text-color);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.qr-card {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid var(--border-color);
}

.qr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.qr-image {
    background: transparent;
    padding: 12px;
    text-align: center;
}

.qr-image img {
    max-width: 100%;
    height: auto;
}

.qr-info {
    padding: 12px;
}

.qr-info h4 {
    margin-bottom: 4px;
    color: var(--text-color);
    font-size: 0.95em;
}

.qr-type {
    color: var(--text-light);
    font-size: 0.8em;
    margin-bottom: 4px;
}

.qr-scans {
    color: var(--primary-color);
    font-size: 0.85em;
    margin-bottom: 10px;
}

.qr-actions {
    display: flex;
    gap: 8px;
}

.generator-form {
    background: transparent;
    padding: 30px;
    border-radius: 15px;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.upgrade-prompt {
    background: transparent;
    padding: 40px;
    border-radius: 15px;
    box-shadow: none;
    text-align: center;
    border: 1px solid var(--border-color);
}

.upgrade-prompt h3 {
    color: var(--text-color);
    margin-bottom: 15px;
}

.upgrade-prompt p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Account Page */
.account-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9em;
}

.info-item span {
    color: var(--text-color);
    font-size: 1em;
}

.plan-name {
    color: var(--primary-color);
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-trial {
    background: #fef3c7;
    color: #92400e;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-expired,
.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.stats-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    background: transparent;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-item .stat-label {
    color: var(--text-light);
    font-size: 0.9em;
    margin-bottom: 5px;
}

.stat-item .stat-value {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
}

/* QR Detail Page */
.qr-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.qr-preview-card {
    background: transparent;
    padding: 30px;
    border-radius: 15px;
    box-shadow: none;
    text-align: center;
    border: 1px solid var(--border-color);
}

.qr-image-large {
    background: transparent;
    padding: 30px;
    border: 3px solid var(--primary-color);
    border-radius: 10px;
    margin-bottom: 20px;
}

.qr-image-large img {
    max-width: 100%;
    height: auto;
}

.qr-actions-large {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.data-preview {
    background: transparent;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

.data-preview pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.type-badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: 600;
}

.scan-count {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2em;
}

/* Pricing Page */
.pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-header h2 {
    font-size: 2.5em;
    color: var(--text-color);
    margin-bottom: 10px;
}

.pricing-header p {
    color: var(--text-light);
    font-size: 1.1em;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.pricing-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.pricing-card.current-plan {
    border: 2px solid var(--primary-color);
}

.pricing-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 12px 16px;
    color: white;
    position: relative;
}

.pricing-card-header h3 {
    margin: 0;
    color: white;
    font-size: 1.2em;
    font-weight: 600;
}

.pricing-card-header .plan-slug {
    color: rgba(255,255,255,0.9);
    font-size: 0.75em;
    text-transform: uppercase;
    margin-top: 2px;
}

.current-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    background: rgba(255,255,255,0.25);
    color: white;
    backdrop-filter: blur(10px);
}

.pricing-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.pricing-card .plan-price {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
    margin: 8px 0;
    line-height: 1;
}

.pricing-card .plan-price .currency {
    font-size: 0.6em;
    font-weight: 500;
}

.currency {
    font-size: 1.5em;
    vertical-align: top;
    color: var(--text-light);
}

.price-amount {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
}

.price-period {
    font-size: 1em;
    color: var(--text-light);
    margin-left: 5px;
}

.pricing-card .plan-details {
    font-size: 0.85em;
    margin: 12px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.pricing-card .detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 0.9em;
}

.pricing-card .detail-item:last-child {
    margin-bottom: 0;
}

.pricing-card .detail-item strong {
    color: var(--text-color);
    min-width: 80px;
    font-size: 0.9em;
}

.pricing-card .features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
    padding: 0;
    list-style: none;
}

.pricing-card .features-list li {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
    border: 1px solid #bfdbfe;
    display: inline-block;
    margin: 0;
    border-bottom: none;
}

.pricing-footer {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pricing-footer p {
    color: var(--text-light);
    font-size: 1em;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .user-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .qr-grid {
        grid-template-columns: 1fr;
    }
    
    .qr-detail-container {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

