/* Global Input Styles */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="tel"],
input[type="search"],
textarea,
select {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    padding: 10px 14px;
    background: rgba(30, 31, 40, 0.8);
    border: 1px solid #2d2d35;
    border-radius: 8px;
    color: #e8e8ed;
    outline: none;
    transition: all 0.2s;
    width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    border-color: #00d4aa;
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
    background: rgba(30, 31, 40, 0.95);
}

input::placeholder,
textarea::placeholder {
    color: #4a4a5a;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b6b80' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Global Button Styles */
button,
.btn,
input[type="submit"],
a.btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

/* Primary Button */
.btn-primary,
button[type="submit"],
input[type="submit"] {
    background: #00d4aa;
    color: #0f0f12;
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.2);
}

.btn-primary:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background: #00e8bb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

/* Secondary Button */
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #e8e8ed;
    border: 1px solid #2d2d35;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00d4aa;
    color: #00d4aa;
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: #6b6b80;
    border: 1px solid #2d2d35;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e8e8ed;
    border-color: #3d3d45;
}

/* Danger Button */
.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

/* Small Button */
.btn-sm {
    padding: 6px 12px;
    font-size: 11px;
}

/* Large Button */
.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

/* Card with Input */
.input-group {
    margin-bottom: 16px;
}

.input-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6b6b80;
    margin-bottom: 6px;
}

.input-help {
    font-size: 11px;
    color: #4a4a5a;
    margin-top: 4px;
}

.input-error {
    font-size: 11px;
    color: #ef4444;
    margin-top: 4px;
}

/* Checkbox & Radio */
input[type="checkbox"],
input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #00d4aa;
    cursor: pointer;
}

/* Search Input */
input[type="search"] {
    padding-left: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b6b80' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
}

/* File Input */
input[type="file"] {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #6b6b80;
}

input[type="file"]::file-selector-button {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    padding: 8px 16px;
    margin-right: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #2d2d35;
    border-radius: 6px;
    color: #e8e8ed;
    cursor: pointer;
    transition: all 0.2s;
}

input[type="file"]::file-selector-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00d4aa;
}

/* Form Layout */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row > * {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
}