/* Base styles from provided custom.scss */
body {
    background-color: #0C2030;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 0.03em;
    margin: 0;
    padding: 0;
    height: 100vh;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.05em;
}

/* Custom Colors */
.color-white { color: #ffffff !important; }
.color-black { color: #000000 !important; }
.color-yellow { color: #F0B93B !important; }
.color-navy { color: #15385B !important; }
.color-grey { color: #878787 !important; }
.color-blue { color: #3981C8 !important; }

/* Custom Background Colors */
.bg-white { background-color: #ffffff !important; }
.bg-yellow { background-color: #F0B93B !important; }
.bg-navy { background-color: #15385B !important; }
.bg-dark-navy { background-color: #081624 !important; }
.bg-transparent-yellow { background-color: rgba(240,185,59,0.9) !important; }

/* Button Styles */
.btn {
    font-weight: 900;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.btn-yellow {
    background-color: #F0B93B;
    border-color: #F0B93B;
    color: #14304C !important;
}

.btn-yellow:hover {
    background-color: #e5ae39;
    border-color: #e5ae39;
    color: #14304C !important;
}

.btn-blue {
    background-color: #2673bc;
    border-color: #12426f;
    color: #ffffff;
}

.btn-blue:hover {
    background-color: #12426f;
    border-color: #12426f;
}

/* Form Controls */
.form-control {
    background-color: #15385b;
    border-color: #3981c8;
    color: #ffffff;
}

.form-control::placeholder {
    color: #9ca2a7;
    font-style: italic;
}

.form-control:focus {
    background-color: #15385b;
    border-color: #F0B93B;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(240, 185, 59, 0.25);
}

/* Login page styles */
.login-container {
    min-height: 100vh;
    background: linear-gradient(to bottom, #081624 0%, #15385B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Background image for login - Add your image as assets/images/login-bg.jpg */
.login-container::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;
    height: 60%;
    background-image: url('/assets/images/login-bg.png');
    background-size: contain;
    background-position: bottom right;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.login-card {
    background-color: rgba(21, 56, 91, 0.95);
    border-radius: 20px;
    padding: 25px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.logo {
    color: #F0B93B;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 10px;
}

/* Logo image styles - Use these when you add logo images */
.logo-img {
    max-height: 60px;
    width: auto;
    margin-bottom: 10px;
    display: block;
}

.header-logo-img {
    max-height: 40px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.tagline {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 30px;
}

.line-height-1 {
  line-height: 1;
}

/* Main interface styles */
.main-container {
    display: none;
    height: 100vh;
    background-color: #0C2030;
}

.header {
    background-color: #15385B;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #3981c8;
}

.header .logo {
    width: 50%;
    font-size: 20px;
    margin: 0;
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.content-wrapper {
    display: flex;
    height: calc(100vh - 80px);
}

.left-panel {
    width: 40%;
    background-color: #081624;
    padding: 30px;
    border-right: 2px solid #3981c8;
    overflow-y: auto;
}

.right-panel {
    width: 60%;
    padding: 30px;
    overflow-y: auto;
}

/* Upload area styles */
.upload-area {
    border: 2px dashed #3981c8;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    margin: 20px 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #F0B93B;
    background-color: rgba(240, 185, 59, 0.1);
}

.upload-area i {
    font-size: 48px;
    color: #3981c8;
    margin-bottom: 15px;
}

.file-list {
    background-color: #14304C;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #3981c8;
}

.file-item:last-child {
    border-bottom: none;
}

.file-status {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.status-pending { background-color: #6c757d; }
.status-processing { background-color: #F0B93B; }
.status-success { background-color: #28a745; }
.status-error { background-color: #dc3545; }

/* Results styles */
.results-container {
    background-color: #14304C;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3981c8;
}

.detection-table {
    width: 100%;
    margin-top: 15px;
}

.detection-table th,
.detection-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #3981c8;
}

.detection-table th {
    background-color: #15385B;
    font-weight: 900;
    color: #F0B93B;
}

.confidence-high { color: #28a745; }
.confidence-medium { color: #F0B93B; }
.confidence-low { color: #dc3545; }

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.metric-card {
    background-color: #15385B;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.metric-value {
    font-size: 24px;
    font-weight: 900;
    color: #F0B93B;
}

.metric-label {
    font-size: 12px;
    color: #9ca2a7;
    margin-top: 5px;
}

.error-message {
    background-color: #dc3545;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
}

.success-message {
    background-color: #28a745;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
}

.loading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #3981c8;
    border-top: 2px solid #F0B93B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden { 
    display: none !important; 
}

/* Bootstrap badge overrides */
.badge {
    font-weight: 900;
}

/* Responsive design */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        height: auto;
    }
    
    .left-panel, .right-panel {
        width: 100%;
    }
    
    .left-panel {
        border-right: none;
        border-bottom: 2px solid #3981c8;
    }
    
    .header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .user-info {
        justify-content: center;
    }
    
    .login-card {
        margin: 20px;
        padding: 30px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .tagline {
        font-size: 16px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .left-panel, .right-panel {
        padding: 20px;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .upload-area i {
        font-size: 36px;
    }
    
    .login-card {
        padding: 25px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}