/* KLS Portal - Custom Styles */

/* General */
body {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Container centering */
.container-narrow {
    max-width: 500px;
    margin: 0 auto;
}

.container-medium {
    max-width: 800px;
    margin: 0 auto;
}

/* Card styling */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* Headers */
.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 30px;
}

.page-header h1 {
    font-weight: 700;
    color: #333;
}

.page-header .subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* Login pages */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.login-card .card-body {
    padding: 40px;
}

.login-card h2 {
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

/* Supplier portal - Download button */
.download-section {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    margin-bottom: 30px;
}

.download-section h2 {
    color: #fff;
    margin-bottom: 10px;
}

.download-section .file-info {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.btn-download-main {
    padding: 15px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    background: #fff;
    color: #667eea;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    background: #fff;
    color: #764ba2;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.table td {
    vertical-align: middle;
}

/* Action buttons */
.btn-action {
    padding: 5px 12px;
    font-size: 0.875rem;
}

/* Badge for codes */
.code-badge {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    padding: 5px 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    user-select: all;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* File upload form */
.upload-form {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.upload-form h5 {
    margin-bottom: 20px;
    color: #495057;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-header {
        padding-top: 20px;
        margin-bottom: 20px;
    }
    
    .download-section {
        padding: 30px 15px;
    }
    
    .btn-download-main {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* RTL support for Hebrew */
.rtl {
    direction: rtl;
    text-align: right;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 0.85rem;
    margin-top: 40px;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
}

/* Form improvements */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
}
