* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('https://images.unsplash.com/photo-1551632786-de41ec2cc64a?w=1200&q=80') center/cover;
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    padding: 10px;
}

.navbar-custom {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    background-color: rgba(33, 37, 41, 0.95) !important;
}

.navbar-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.navbar-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1rem;
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    margin: 0;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
}

@media (min-width: 992px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
}

.navbar-websites {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    flex: 1;
    justify-content: center;
}

.navbar-website-link {
    color: #ffc107;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar-website-link:hover {
    color: #fff;
    text-decoration: underline;
}

.navbar-divider {
    color: #555;
}

.navbar-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    flex-wrap: wrap;
    min-width: 0;
}

.contact-navbar-item {
    font-size: 0.75rem;
    color: #fff;
    white-space: nowrap;
}

.navbar-contact-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.75rem;
}

.navbar-contact-link:hover {
    color: #ffc107;
}

.navbar-divider-vertical {
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-collapse {
    width: 100% !important;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0;
    margin-top: 10px;
}

.navbar-mobile-menu {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}

.navbar-section {
    margin-bottom: 15px;
}

.navbar-section h6 {
    color: #ffc107;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.navbar-link {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.navbar-link:hover {
    color: #ffc107;
    padding-left: 10px;
}

.navbar-section hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 10px 0;
}

.main-container {
    padding: 10px 0;
}

.card-form {
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    height: 100%;
}

@media (min-width: 768px) {
    .card-form {
        padding: 25px;
    }
}

h2 {
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

@media (min-width: 768px) {
    h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
}

h6 {
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-label-sm {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.875rem;
    display: block;
}

.form-control-sm {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 10px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control-sm:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background-color: #fff;
}

select.form-control-sm {
    cursor: pointer;
}

.info-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 8px 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #856404;
}

@media (min-width: 768px) {
    .info-box {
        padding: 10px 12px;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
}

.info-box strong {
    font-weight: 700;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #667eea;
    border-color: #667eea;
}

.btn-primary:hover {
    background-color: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-outline-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.alert-sm {
    border-radius: 8px;
    border: none;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .alert-sm {
        padding: 15px;
        font-size: 1rem;
    }
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-secondary {
    background-color: #e2e3e5;
    color: #383d41;
}

.alert-light {
    background-color: #f8f9fa !important;
    color: #333 !important;
}

.alert strong {
    font-weight: 700;
}

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table {
    margin: 0;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .table {
        font-size: 0.95rem;
    }
}

.table thead {
    background-color: #667eea;
    color: white;
}

.table thead th {
    border: none;
    padding: 10px 5px;
    font-weight: 600;
}

.table tbody td {
    padding: 8px 5px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: #f5f5f5;
}

.progress {
    border-radius: 8px;
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.badge {
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.mb-2 {
    margin-bottom: 10px;
}

.mb-3 {
    margin-bottom: 15px;
}

.mt-1 {
    margin-top: 5px;
}

hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 15px 0;
}

@media (min-width: 768px) {
    .mb-md-3 {
        margin-bottom: 20px;
    }
    
    .mb-md-4 {
        margin-bottom: 30px;
    }
    
    .mt-md-4 {
        margin-top: 30px;
    }
}

@media (max-width: 575px) {
    body {
        padding: 5px;
    }
    
    .card-form {
        padding: 12px;
    }
    
    .row {
        margin: 0 !important;
    }
    
    .col-12 {
        padding: 5px;
    }
    
    .navbar-custom {
        padding: 0.4rem 0.5rem;
    }
    
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .navbar-content {
        gap: 10px;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .card-form {
        padding: 15px;
    }

    .navbar-contact {
        display: none !important;
    }

    .navbar-websites {
        display: none !important;
    }
}

@media (min-width: 768px) {
    body {
        padding: 20px;
    }
    
    .main-container {
        padding: 20px 0;
    }

    .navbar-toggler {
        display: none !important;
    }

    .navbar-collapse {
        display: none !important;
    }
}

small {
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    small {
        font-size: 0.875rem;
    }
}

.text-center {
    text-align: center;
    padding: 15px 0;
}

.text-muted {
    color: #6c757d !important;
}

.text-danger {
    color: #dc3545 !important;
}

input, select, textarea {
    font-size: 16px !important;
    -webkit-appearance: none;
    appearance: none;
}

select.form-control-sm {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
    padding-right: 32px;
}