:root {
    --primary-color: #0d2c65; /* Yazilim3D dark blue */
    --secondary-color: #38bdf8; /* Soft blue */
    --accent-color: #4ade80; /* Soft green */
    --bg-gradient-start: #0f172a; /* Slate 900 */
    --bg-gradient-end: #1e293b; /* Slate 800 */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --input-bg: rgba(15, 23, 42, 0.6);
    --danger: #ef4444;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.app-container {
    width: 100%;
    max-width: 480px; /* Mobile optimal size */
    min-height: 100vh;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Background decorative blobs */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.5;
    animation: float 10s ease-in-out infinite alternate;
}

body::before {
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
}

body::after {
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-logo {
    width: auto;
    height: 60px;
    margin-bottom: 1rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--text-primary), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hidden {
    display: none !important;
    opacity: 0;
    transform: scale(0.95);
}

/* Form Styles */
.vcard-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 0.25rem;
}

.input-group input {
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

.input-group input[type="file"] {
    padding: 0.75rem;
    cursor: pointer;
}

.input-group input[type="file"]::file-selector-button {
    background: var(--glass-border);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    margin-right: 1rem;
    transition: background 0.3s;
}

.input-group input[type="file"]::file-selector-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.helper-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 0.25rem;
    margin-top: -0.2rem;
}

.input-group input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin-top: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #0ea5e9);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Result Panel */
.result-panel {
    text-align: center;
    animation: fadeIn 0.5s ease forwards;
}

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

.result-panel h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.result-panel p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.qr-container {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Footer Banners */
.footer {
    margin-top: auto;
    padding-top: 3rem;
}

.banners-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
}

.brand-banners {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 50px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .app-container {
        padding: 1.5rem 1rem;
    }
    
    .glass-panel {
        padding: 1.5rem;
    }
    
    .brand-logo {
        height: 50px;
    }
    
    .brand-banners {
        max-height: 40px;
    }
}

/* Cropper Modal */
.cropper-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.cropper-container-wrapper {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cropper-container-wrapper h3 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.img-container {
    width: 100%;
    max-height: 400px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.img-container img {
    max-width: 100%;
    display: block;
}

.cropper-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.cropper-actions button {
    margin-top: 0;
}

/* Make cropper circle */
.cropper-view-box,
.cropper-face {
    border-radius: 50%;
}
