@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
    --primary: #00ff41;
    --bg-primary: #0a0e11;
    --bg-secondary: #131820;
    --bg-tertiary: #1a1f28;
    --text-primary: #ffffff;
    --text-secondary: #8b95a5;
    --border-color: #1e2430;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    padding: 20px;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 440px;
    animation: fadeIn 0.4s ease;
}

.header-logo {
    text-align: center;
    margin-bottom: 32px;
}

.main-logo {
    height: 100px;
    width: auto;
    display: inline-block;
}

.card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 48px 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.logo {
    text-align: center;
    margin-bottom: 40px;
}


.logo-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--bg-primary);
}

.logo-icon svg {
    width: 32px;
    height: 32px;
}

h1 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    margin-bottom: 32px;
    font-weight: 400;
    line-height: 1.5;
}

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

label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="password"],
input[type="url"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-family: inherit;
    font-weight: 400;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="url"]:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-primary);
}

input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

button {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-top: 8px;
}

button:hover {
    background: #00ff41;
    opacity: 0.9;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ff6b6b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error::before {
    content: '⚠';
    font-size: 16px;
}

.success {
    text-align: center;
    margin-top: 24px;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--bg-primary);
}

.success-icon svg {
    width: 48px;
    height: 48px;
}

.code-badge {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    margin: 0 4px;
    font-size: 16px;
    border: 1px solid var(--border-color);
}

.countdown {
    font-size: 72px;
    font-weight: 700;
    color: var(--primary);
    margin: 32px 0 16px;
    letter-spacing: -2px;
    line-height: 1;
}

.countdown-label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* Admin Panel */
.admin-container {
    max-width: 900px;
}

.admin-container .header-logo {
    margin-bottom: 40px;
}

.admin-header {
    text-align: center;
    margin-bottom: 40px;
}

.admin-section {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.admin-section h2 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.code-item-wrapper {
    margin-bottom: 24px;
}

.code-item {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.code-item:hover {
    background: var(--bg-primary);
    border-color: var(--primary);
}

.links-grid {
    display: grid;
    gap: 8px;
    padding: 0 4px;
}

.link-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.link-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-family: 'Monaco', 'Courier New', monospace;
}

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

.btn-copy {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 16px;
    width: auto;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-weight: 500;
}

.btn-copy:hover {
    background: var(--bg-primary);
    border-color: var(--primary);
    color: var(--primary);
    transform: none;
}

.code-info {
    flex: 1;
    min-width: 0;
}

.code-name {
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.code-url {
    color: var(--text-secondary);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-delete {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ff6b6b;
    padding: 8px 16px;
    width: auto;
    font-size: 13px;
    flex-shrink: 0;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ff6b6b;
}

.form-inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-inline input {
    flex: 1;
    min-width: 200px;
}

.form-inline button {
    flex-shrink: 0;
    width: auto;
    padding: 14px 28px;
}

a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .card {
        padding: 32px 24px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    .countdown {
        font-size: 56px;
    }
    
    .admin-section {
        padding: 24px 20px;
    }
    
    .code-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-delete {
        width: 100%;
    }
    
    .form-inline {
        flex-direction: column;
    }
    
    .form-inline input,
    .form-inline button {
        width: 100%;
    }
    
    .link-item {
        flex-direction: column;
        gap: 6px;
    }
    
    .link-input {
        font-size: 12px;
    }
    
    .btn-copy {
        width: 100%;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
