:root {
    --primary-color: #f76b1c;
    --primary-hover: #e05a12;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-main: #2b2b2b;
    --text-muted: #828282;
    --border-radius: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background-image: radial-gradient(circle at top right, #fdece2 0%, #f4f7f6 40%);
}

.container {
    max-width: 600px;
}

.brand-header {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-header h2 {
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.brand-header p {
    color: var(--text-muted);
}

.custom-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: none;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-control, .input-group-text {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid #e1e5ea;
    box-shadow: none;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(247, 107, 28, 0.1);
}

.input-group-text {
    background-color: #f8f9fa;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: 10px;
    padding: 0.85rem;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(247, 107, 28, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 107, 28, 0.4);
}

.loader {
    display: none;
    margin-top: 1.5rem;
}

.spinner-border {
    color: var(--primary-color) !important;
    width: 1.5rem;
    height: 1.5rem;
}

.response-box {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-top: 5px solid #28a745;
    padding: 2rem;
    margin-top: 2rem;
    animation: slideUp 0.5s ease;
}

.password-alert {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.table {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e1e5ea;
}

.table th {
    background-color: #f8f9fa;
    color: var(--text-main);
    font-weight: 600;
    width: 30%;
}

.table td {
    color: var(--text-muted);
    word-break: break-all;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.history-container { 
    max-width: 800px; 
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--card-bg);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

/* Wide Container for Tables */
.table-container {
    max-width: 1100px !important;
    width: 100%;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .custom-card {
        padding: 1.5rem;
    }

    /* Wrap navigation vertically on small screens */
    .nav-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1.25rem;
    }
    
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-links a {
        margin-left: 0;
        margin: 0 0.5rem;
        font-size: 0.95rem;
    }

    /* Keep table legible by allowing scrolling but ensuring nowrap */
    .table th, .table td {
        white-space: nowrap;
        font-size: 0.9rem;
    }
    
    .brand-header h2 {
        font-size: 1.75rem;
    }
}
