/**
 * ToyBin Custom Styles
 * includes/css/style.css
 */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Admin Sidebar */
.sidebar {
    min-height: calc(100vh - 56px);
    padding: 0;
}

.sidebar .list-group-item {
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.sidebar .list-group-item.active {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

/* Footer */
footer {
    margin-top: auto;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
}

/* hCaptcha Responsive Fix */
.hcaptcha-container {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.h-captcha {
    transform: scale(0.85);
    transform-origin: 0 0;
}

@media (max-width: 576px) {
    .h-captcha {
        transform: scale(0.75);
    }
}

@media (max-width: 400px) {
    .h-captcha {
        transform: scale(0.65);
    }
}
/* --- Navbar wrap prevention --- */
.navbar .nav-link,
.navbar-brand {
    white-space: nowrap;
}

/* optional: keep user section on one line */
.navbar .dropdown-toggle.d-flex {
    flex-wrap: nowrap;
}
/* keep navbar labels and user dropdown on one line */
.navbar .nav-link,
.navbar-brand { white-space: nowrap; }
.navbar .dropdown-toggle.d-flex { flex-wrap: nowrap; 
}
/* keep header items neat and centered */
.navbar .nav-link,
.navbar-brand { white-space: nowrap; }
.navbar .dropdown-toggle.d-flex { flex-wrap: nowrap; 
}