/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00bcd4;
    --secondary-color: #0097a7;
    --accent-color: #ff5722;
    --dark: #333;
    --light: #f5f5f5;
    --white: #ffffff;
    --gray: #999;
    --border: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--dark);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--dark);
}

.logo i {
    font-size: 35px;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 20px;
    font-weight: 600;
}

.logo p {
    font-size: 10px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover, .nav a.active {
    color: var(--primary-color);
}

.user-info {
    padding: 8px 15px;
    background: var(--light);
    border-radius: 20px;
    font-size: 14px;
}

.btn-login {
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    color: var(--primary-color) !important;
    transition: all 0.3s;
}

.btn-login:hover {
    background: var(--primary-color);
    color: var(--white) !important;
}

.btn-signup {
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--white) !important;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

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

.btn-logout {
    padding: 8px 20px;
    background: var(--accent-color);
    color: var(--white) !important;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-logout:hover {
    opacity: 0.9;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    padding: 10px;
    margin-left: auto;
}

.menu-toggle:hover {
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

.generator-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 30px;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.generator-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* QR Type Buttons */
.qr-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.qr-type {
    padding: 15px 10px;
    border: 2px solid var(--border);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.qr-type i {
    font-size: 24px;
    color: var(--gray);
}

.qr-type:hover {
    border-color: var(--primary-color);
    background: rgba(0, 188, 212, 0.05);
}

.qr-type.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

.qr-type.active i {
    color: var(--white);
}

/* Input Area */
.input-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qr-form {
    display: none;
}

.qr-form.active {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-input, .input-field {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.main-input:focus, .input-field:focus {
    outline: none;
    border-color: var(--primary-color);
}

.textarea-input {
    resize: vertical;
    min-height: 120px;
}

.input-hint {
    font-size: 14px;
    color: var(--gray);
    margin-top: -10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(0, 188, 212, 0.05);
}

.file-upload-area i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.file-upload-area p {
    color: var(--gray);
    margin-bottom: 15px;
}

.file-upload-area input[type="file"] {
    display: none;
}

.upload-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

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

.file-note {
    font-size: 12px;
    color: var(--gray);
    text-align: center;
    margin-top: 10px;
}

.scan-tracking {
    padding: 15px;
    background: var(--light);
    border-radius: 8px;
}

/* Generator Right Side */
.generator-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qr-preview {
    background: var(--light);
    padding: 40px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px;
}

#qr-canvas {
    max-width: 100%;
    height: auto;
    position: relative;
}

/* QRCode.js creates an img - make it visible and centered */
#qr-canvas img {
    display: block !important;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* QRCode.js also creates a canvas - keep for download but hide visually */
#qr-canvas canvas {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

/* Customization Panel */
.customization-panel {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.panel-section {
    border-bottom: 1px solid var(--border);
}

.panel-section:last-child {
    border-bottom: none;
}

.panel-header {
    width: 100%;
    padding: 15px 20px;
    background: var(--white);
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.panel-header:hover {
    background: var(--light);
}

.panel-header.active {
    background: var(--light);
}

.panel-header .badge {
    background: var(--accent-color);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
}

.panel-content {
    display: none;
    padding: 20px;
    background: var(--light);
}

.panel-content.active {
    display: block;
}

/* Frame Options */
.frame-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.frame-option {
    aspect-ratio: 1;
    border: 2px solid var(--border);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: all 0.3s;
    overflow: visible;
}

.frame-option:hover {
    border-color: var(--primary-color);
    background: rgba(0, 188, 212, 0.05);
}

.frame-option.active {
    border-color: var(--primary-color);
    background: rgba(0, 188, 212, 0.1);
}

/* Frame preview miniatures */
.frame-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 3px;
}

.mini-qr {
    width: 40px;
    height: 40px;
    background: 
        linear-gradient(0deg, #000 2px, transparent 2px) 0 0,
        linear-gradient(90deg, #000 2px, transparent 2px) 0 0,
        linear-gradient(0deg, #000 2px, transparent 2px) 0 100%,
        linear-gradient(90deg, #000 2px, transparent 2px) 100% 0;
    background-size: 8px 8px, 8px 8px, 8px 8px, 8px 8px;
    background-repeat: repeat;
    background-color: white;
    border: 1px solid #999;
    position: relative;
}

.mini-qr::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 8px;
    height: 8px;
    background: #000;
    border: 1px solid #fff;
}

.mini-qr::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #000;
    border: 1px solid #fff;
}

.mini-qr-bordered-cyan {
    border: 3px solid #00BFFF;
    border-radius: 6px;
    padding: 5px;
}

.mini-qr-bordered-pink {
    border: 3px solid #FF6B9D;
    border-radius: 8px;
    padding: 5px;
}

.mini-qr-bordered-green {
    border: 3px solid #4CAF50;
    border-radius: 8px;
    padding: 5px;
}

/* Gift Box Frame */
.frame-giftbox {
    background: linear-gradient(180deg, #FFD700 0%, #FFC700 100%);
    padding: 8px 6px 6px 6px;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.mini-bow {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 12px;
    z-index: 10;
}

.mini-bow::before,
.mini-bow::after {
    content: '';
    position: absolute;
    width: 11px;
    height: 11px;
    background: #FFD700;
    border-radius: 50% 50% 0 50%;
    box-shadow: inset -1px -1px 2px rgba(0,0,0,0.2);
}

.mini-bow::before {
    left: 0;
    transform: rotate(-45deg);
}

.mini-bow::after {
    right: 0;
    transform: rotate(45deg);
    border-radius: 50% 50% 50% 0;
    box-shadow: inset 1px -1px 2px rgba(0,0,0,0.2);
}

.mini-frame-giftbox {
    background: rgba(0,0,0,0.15);
    color: #333;
    font-size: 6px;
    font-weight: bold;
    padding: 3px;
    text-align: center;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
    border-radius: 2px;
}

/* Envelope Frame */
.mini-envelope-body {
    background: linear-gradient(180deg, #00CED1 0%, #00B8BB 100%);
    width: 100%;
    padding: 10px 4px 4px 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.mini-envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(180deg, #00E5E8 0%, #00CED1 100%);
}

.mini-envelope-flap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: 
        radial-gradient(circle at 0 0, transparent 4px, #00CED1 4px) -4px 0,
        radial-gradient(circle at 100% 0, transparent 4px, #00CED1 4px) calc(100% + 4px) 0;
    background-size: 8px 8px;
    background-repeat: repeat-x;
}

/* Speech Bubble Frame */
.mini-speech-bubble {
    background: linear-gradient(135deg, #00BFFF 0%, #0099CC 100%);
    color: white;
    font-size: 5px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 10px;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.mini-speech-tail {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #0099CC;
    margin-bottom: 3px;
}

/* Pink Rounded Frame */
.mini-frame-pink {
    background: linear-gradient(180deg, #FF6B9D 0%, #FF5588 100%);
    color: white;
    font-size: 6px;
    font-weight: bold;
    padding: 4px 5px;
    width: 100%;
    text-align: center;
    letter-spacing: 0.5px;
    border-radius: 0 0 6px 6px;
    margin-top: -3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Cyan Bottom Frame */
.mini-frame-cyan {
    background: linear-gradient(180deg, #00CED1 0%, #00B8BB 100%);
    color: white;
    font-size: 6px;
    font-weight: bold;
    padding: 4px 5px;
    width: 100%;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    margin-top: 3px;
}

/* Handwritten with Arrow */
.mini-arrow {
    position: absolute;
    left: 5px;
    bottom: 12px;
    color: #4A90E2;
    font-size: 18px;
    transform: rotate(135deg);
    font-weight: bold;
}

.mini-handwritten {
    font-family: 'Brush Script MT', 'Comic Sans MS', cursive;
    font-size: 10px;
    color: #4A90E2;
    font-style: italic;
    margin-top: 3px;
    font-weight: normal;
}

/* Pink/Red Bottom Frame */
.mini-frame-red {
    background: linear-gradient(180deg, #FF6B6B 0%, #EE5A5A 100%);
    color: white;
    font-size: 6px;
    font-weight: bold;
    padding: 4px 5px;
    width: 100%;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    margin-top: 3px;
}

/* Black Bottom Frame */
.mini-frame-black {
    background: linear-gradient(180deg, #333 0%, #000 100%);
    color: white;
    font-size: 6px;
    font-weight: bold;
    padding: 4px 5px;
    width: 100%;
    text-align: center;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    margin-top: 3px;
}

/* Ribbon Banner */
.mini-ribbon {
    background: linear-gradient(180deg, #FFB6C1 0%, #FFA0B0 100%);
    color: #333;
    font-size: 5px;
    font-weight: bold;
    padding: 3px 6px;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    margin-top: 4px;
    position: relative;
    letter-spacing: 0.5px;
}

.mini-ribbon::before,
.mini-ribbon::after {
    content: '';
    position: absolute;
    bottom: -4px;
    width: 0;
    height: 0;
    border-top: 4px solid #CC889E;
}

.mini-ribbon::before {
    left: -4px;
    border-left: 4px solid transparent;
}

.mini-ribbon::after {
    right: -4px;
    border-right: 4px solid transparent;
}

/* Bottom Bar Frame */
.mini-frame-bottom {
    background: linear-gradient(180deg, #222 0%, #000 100%);
    color: #fff;
    font-size: 6px;
    font-weight: bold;
    padding: 4px 5px;
    width: 100%;
    text-align: center;
    margin-top: 3px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Green Rounded Frame */
.mini-frame-green {
    background: linear-gradient(180deg, #4CAF50 0%, #45A049 100%);
    color: white;
    font-size: 6px;
    font-weight: bold;
    padding: 4px 5px;
    width: 100%;
    text-align: center;
    letter-spacing: 0.5px;
    border-radius: 0 0 6px 6px;
    margin-top: -3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Color Pickers */
.color-pickers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.color-picker-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.color-picker-group label {
    font-size: 14px;
    font-weight: 600;
}

.color-picker-group input[type="color"] {
    width: 100%;
    height: 50px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

/* Logo Upload */
.file-upload-area.small {
    padding: 20px;
}

.upload-btn-small {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

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

.logo-size-control {
    margin-top: 15px;
}

.logo-size-control label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.logo-size-control input[type="range"] {
    width: 100%;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-buttons button {
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

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

.btn-print {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--border);
}

.btn-print:hover {
    border-color: var(--primary-color);
    background: rgba(0, 188, 212, 0.05);
}

.btn-save {
    background: #4caf50;
    color: var(--white);
}

.btn-save:hover {
    background: #45a049;
}

/* Footer */
.footer {
    background: var(--white);
    margin-top: 40px;
    padding: 30px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 20px;
    gap: 30px;
}

.footer-info {
    flex: 1;
}

.footer-info p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.8;
}

.badge-new {
    background: var(--accent-color);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    margin-right: 5px;
}

.learn-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    color: var(--gray);
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.auth-box {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.auth-header h2 {
    font-size: 20px;
    color: var(--dark);
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
}

.form-group small {
    font-size: 12px;
    color: var(--gray);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

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

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

.btn-primary {
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-full {
    width: 100%;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-footer p {
    margin: 10px 0;
}

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

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

/* Dashboard Styles */
.dashboard-content {
    padding: 40px 0;
}

.dashboard-content h1 {
    font-size: 32px;
    margin-bottom: 30px;
}

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

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

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.stat-info h3 {
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--gray);
    font-size: 14px;
}

.recent-section {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

.section-header h2 {
    font-size: 24px;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--border);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 20px;
}

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

.qr-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.qr-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.qr-card-preview {
    background: var(--light);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.qr-card-preview img {
    max-width: 100%;
    max-height: 100%;
}

.qr-card-info {
    padding: 20px;
}

.qr-card-info h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.qr-data {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
    word-break: break-all;
}

.qr-card-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 15px;
}

.qr-card-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.btn-small {
    padding: 8px 15px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 5px;
    text-decoration: none;
    color: var(--dark);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.btn-small:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* QR List View */
.qr-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qr-list-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all 0.3s;
}

.qr-list-item:hover {
    box-shadow: var(--shadow);
}

.qr-list-preview {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: var(--light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.qr-list-preview img {
    max-width: 100%;
    max-height: 100%;
}

.qr-list-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.qr-list-info {
    flex: 1;
}

.qr-list-info h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.qr-list-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--gray);
    margin-top: 10px;
}

.qr-list-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-tracking {
    background: #4caf50;
    color: var(--white);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.qr-list-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-view {
    background: var(--primary-color);
    color: var(--white) !important;
    border-color: var(--primary-color);
}

.btn-download {
    background: #4caf50;
    color: var(--white) !important;
    border-color: #4caf50;
}

.btn-delete {
    background: var(--accent-color);
    color: var(--white) !important;
    border-color: var(--accent-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-link {
    padding: 10px 15px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 5px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s;
}

.page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-link.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .generator-layout {
        grid-template-columns: 1fr;
    }
    
    .generator-right {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        position: relative;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        z-index: 1001;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        background: var(--white);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        padding: 20px;
        gap: 15px;
        z-index: 1000;
        border-radius: 0 0 15px 15px;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .nav.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav a {
        padding: 12px 15px;
        border-radius: 8px;
        transition: all 0.3s;
    }
    
    .nav a:hover {
        background: rgba(0, 188, 212, 0.1);
        transform: translateX(5px);
    }
    
    .qr-types {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .frame-options {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .qr-grid {
        grid-template-columns: 1fr;
    }
    
    .qr-list-item {
        flex-direction: column;
        text-align: center;
    }
    
    .qr-list-content {
        flex-direction: column;
    }
    
    .qr-list-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .qr-types {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .qr-type {
        font-size: 10px;
    }
    
    .frame-options {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .color-pickers {
        grid-template-columns: 1fr;
    }
}