* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Mor-Mavi Renk Paleti */
    --primary-color: #6366f1; /* İndigo-Mavi */
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6; /* Mor */
    --secondary-dark: #7c3aed;
    --accent-purple: #a78bfa;
    --accent-blue: #3b82f6;
    
    /* Durum Renkleri */
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    
    /* Arka Plan ve Kartlar */
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-card: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    
    /* Metin Renkleri */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    
    /* Kenarlık ve Gölgeler */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow: 0 1px 3px 0 rgba(99, 102, 241, 0.1), 0 1px 2px 0 rgba(139, 92, 246, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(99, 102, 241, 0.2), 0 4px 6px -2px rgba(139, 92, 246, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(99, 102, 241, 0.3), 0 10px 10px -5px rgba(139, 92, 246, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gradient-primary);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 30px 0;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    flex: 1;
}

.scanner-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.scanner-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.scanner-card h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    text-align: center;
}

.instruction {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.qr-reader-container {
    margin: 30px 0;
}

.qr-reader-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.qr-tab-btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qr-tab-btn:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}

.qr-tab-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.qr-tab-content {
    display: none;
}

.qr-tab-content.active {
    display: block;
}

.file-upload-area {
    padding: 40px 20px;
    text-align: center;
}

.file-upload-label {
    display: block;
    padding: 40px;
    border: 3px dashed var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-color);
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    background: #f0f9ff;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.upload-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 5px;
}

.btn-select-file {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-select-file:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

#file-preview {
    padding: 20px;
    background: var(--bg-color);
    border-radius: 8px;
}

#file-preview img {
    max-width: 100%;
    height: auto;
    border: 2px solid var(--border-color);
    border-radius: 8px;
}

#file-status {
    margin-top: 15px;
    font-weight: 600;
}

.manual-input {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.or-divider {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 20px;
    position: relative;
}

.or-divider::before,
.or-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-color);
}

.or-divider::before {
    left: 0;
}

.or-divider::after {
    right: 0;
}

#manual-qr-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

#qr-code-input {
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

#qr-code-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 4px 6px -1px rgba(139, 92, 246, 0.1);
    background: white;
}

button[type="submit"],
.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-2px);
}

.info-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(10px);
}

.info-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.info-section p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.info-section ul {
    list-style-position: inside;
    color: var(--text-secondary);
}

.info-section li {
    margin-bottom: 8px;
}

.medical-warning {
    margin-top: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    border: 2px solid #ef4444;
    border-radius: 12px;
    color: #dc2626;
    font-size: 1rem;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.2);
}

.medical-warning strong {
    color: #dc2626;
}

footer {
    text-align: center;
    color: white;
    padding: 20px 0;
    opacity: 0.8;
}

.error-message {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.error-message h2 {
    color: var(--danger-color);
    margin-bottom: 15px;
}

.error-message p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .logo {
        max-width: 100px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .scanner-card {
        padding: 20px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}

