/* Modern Design System */
:root {
    --primary-color: #1A2421;
    --primary-dark: #0f1513;
    --primary-light: #2a3d35;
    --bg-dark: #0a0e0c;
    --bg-card: #1a1f1d;
    --bg-card-hover: #222826;
    --text-primary: #ffffff;
    --text-secondary: #b0b8b5;
    --accent-gradient: linear-gradient(135deg, #1A2421 0%, #2a3d35 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 20px rgba(26, 36, 33, 0.3);
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #0a0e0c 0%, #1a1f1d 50%, #0f1513 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Additional custom styles can be added here */

/* Numeric Keypad Styles - Modern Glassmorphism */
.keypad-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 320px;
    background: rgba(26, 36, 33, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(26, 36, 33, 0.3);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.keypad-row {
    display: contents;
}

.keypad-btn {
    aspect-ratio: 1;
    min-height: 70px;
    background: rgba(26, 36, 33, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(26, 36, 33, 0.4);
    border-radius: 16px;
    color: white;
    font-size: 28px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.keypad-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.keypad-btn:hover {
    background: rgba(26, 36, 33, 0.4);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.keypad-btn:hover::before {
    width: 300px;
    height: 300px;
}

.keypad-btn:active {
    background: rgba(26, 36, 33, 0.5);
    transform: translateY(0) scale(0.95);
    box-shadow: var(--shadow-sm);
}

.keypad-btn:focus {
    outline: 2px solid rgba(26, 36, 33, 0.6);
    outline-offset: 3px;
}

/* Selected button style (for navigation) */
.keypad-btn.selected {
    outline: 2px solid rgba(26, 36, 33, 0.8);
    outline-offset: 3px;
    background: rgba(26, 36, 33, 0.5);
    box-shadow: var(--shadow-glow);
}

/* Form control styles - Modern */
.form-control {
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(26, 36, 33, 0.2), var(--shadow-md);
    transform: translateY(-1px);
}

/* Exit button styles - Modern */
.btn-exit {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-exit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-exit:hover {
    background-color: #ff0000 !important;
    border-color: #ff0000 !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
}

.btn-exit:hover::before {
    width: 300px;
    height: 300px;
}

.btn-exit:active {
    background-color: #cc0000 !important;
    border-color: #cc0000 !important;
    transform: translateY(0) scale(0.98);
}

/* Modern Card Styles */
.modern-card {
    background: rgba(26, 31, 29, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(26, 36, 33, 0.3);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(26, 36, 33, 0.5);
}

/* Modern Button Styles */
.btn-modern {
    background: var(--accent-gradient);
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 16px;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-modern:hover::before {
    width: 300px;
    height: 300px;
}

.btn-modern:active {
    transform: translateY(0) scale(0.98);
}

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in {
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Input Styles */
.modern-input {
    background: rgba(26, 31, 29, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(26, 36, 33, 0.3);
    border-radius: 12px;
    padding: 14px 18px;
    color: white;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-input:focus {
    background: rgba(26, 31, 29, 0.8);
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(26, 36, 33, 0.2), var(--shadow-md);
    outline: none;
}

.modern-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
