/* Omega Client Portal - Public Styles */

.omega-portal-login,
.omega-portal-dashboard {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Login Container */
.omega-login-container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.omega-login-container h2 {
    margin-top: 0;
    color: #0073aa;
    text-align: center;
}

/* Forms */
.omega-input,
.omega-select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.omega-input:focus,
.omega-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.omega-button {
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.omega-button-primary {
    background: #0073aa;
    color: white;
}

.omega-button-primary:hover {
    background: #005a87;
    color: white;
}

.omega-button-small {
    padding: 6px 12px;
    font-size: 14px;
    background: #0073aa;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    margin-right: 8px;
}

.omega-button-small:hover {
    background: #005a87;
    color: white;
}

.omega-button-link {
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
}

.omega-button-link:hover {
    text-decoration: underline;
}

/* Dashboard */
.omega-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
}

.omega-dashboard-header h2 {
    margin: 0;
    color: #fff;
}

/* Sections */
.omega-section {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.omega-section h3 {
    margin-top: 0;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

/* Alerts */
.omega-alert {
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.omega-alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.omega-alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.omega-alert h3 {
    margin-top: 0;
}

.omega-alert ul {
    margin-bottom: 0;
}

/* Form Groups */
.omega-form-group {
    margin-bottom: 20px;
}

.omega-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.omega-help-text {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Tables */
.omega-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.omega-table thead {
    background: #f5f5f5;
}

.omega-table th,
.omega-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.omega-table th {
    font-weight: 600;
    color: #333;
}

.omega-table tbody tr:hover {
    background: #f9f9f9;
}

/* Badges */
.omega-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
}

.omega-badge-warning {
    background: #ffc107;
    color: #856404;
}

.omega-badge-success {
    background: #28a745;
    color: white;
}

/* Success/Error Messages */
.omega-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.omega-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* File Upload Area */
.omega-upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s;
    cursor: pointer;
}

.omega-upload-area:hover,
.omega-upload-area.drag-over {
    border-color: #0073aa;
    background: #f0f6fc;
}

.omega-upload-icon {
    font-size: 48px;
    color: #0073aa;
    margin-bottom: 15px;
}

/* Multi-File Uploader Styles */
.omega-multi-uploader {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.omega-drop-zone {
    border: 3px dashed #d0d0d0;
    border-radius: 8px;
    padding: 50px 20px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.omega-drop-zone:hover {
    border-color: #0073aa;
    background: #f0f6fc;
}

.omega-drop-zone.omega-drag-over {
    border-color: #0073aa;
    background: #e6f2ff;
    border-style: solid;
}

.omega-drop-zone-icon {
    font-size: 64px;
    color: #0073aa;
    margin-bottom: 20px;
    line-height: 1;
}

.omega-drop-zone h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.omega-drop-zone p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

.omega-drop-zone small {
    display: block;
    margin-top: 15px;
    color: #999;
    font-size: 13px;
}

.omega-drop-zone input[type="file"] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
}

.omega-files-preview {
    margin-top: 30px;
}

.omega-files-preview h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.omega-file-count {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.omega-files-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.omega-file-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.omega-file-item:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.omega-file-icon {
    font-size: 32px;
    color: #0073aa;
    min-width: 32px;
}

.omega-file-details {
    flex: 1;
    min-width: 0;
}

.omega-file-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
    word-break: break-all;
}

.omega-file-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-top: 8px;
}

.omega-file-size {
    color: #666;
    font-size: 13px;
}

.omega-file-type-select {
    flex: 0 0 auto;
}

.omega-file-type-select label {
    display: block;
    margin-bottom: 4px;
    color: #666;
    font-size: 12px;
    font-weight: 500;
}

.omega-file-type-select select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: white;
    min-width: 150px;
}

.omega-file-signature {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.omega-file-signature input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.omega-file-signature label {
    color: #666;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.omega-file-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.omega-file-remove:hover {
    background: #c82333;
}

.omega-upload-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.omega-upload-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.omega-upload-button:hover {
    background: #005a87;
}

.omega-upload-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.omega-clear-button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.omega-clear-button:hover {
    background: #5a6268;
}

.omega-upload-progress {
    margin-top: 20px;
}

.omega-progress-item {
    margin-bottom: 15px;
}

.omega-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: #333;
}

.omega-progress-filename {
    font-weight: 600;
    word-break: break-all;
}

.omega-progress-status {
    color: #666;
}

.omega-progress-bar-container {
    background: #e0e0e0;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    position: relative;
}

.omega-progress-bar {
    background: #0073aa;
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.omega-progress-bar.success {
    background: #28a745;
}

.omega-progress-bar.error {
    background: #dc3545;
}

.omega-upload-summary {
    margin-top: 20px;
    padding: 15px;
    background: #e7f5ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
}

.omega-upload-summary.success {
    background: #d4edda;
    border-color: #c3e6cb;
}

.omega-upload-summary.error {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.omega-upload-summary h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.omega-upload-summary p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

/* Responsive Adjustments for Multi-Uploader */
@media screen and (max-width: 768px) {
    .omega-file-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .omega-file-meta {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .omega-file-type-select,
    .omega-file-signature {
        width: 100%;
    }
    
    .omega-file-type-select select {
        width: 100%;
    }
    
    .omega-upload-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .omega-upload-button,
    .omega-clear-button {
        width: 100%;
    }
    
    .omega-drop-zone {
        padding: 30px 15px;
    }
}

/* Loading Spinner */
.omega-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 115, 170, 0.3);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .omega-portal-login,
    .omega-portal-dashboard {
        padding: 0 15px;
    }
    
    .omega-login-container,
    .omega-section {
        padding: 20px;
    }
    
    .omega-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .omega-dashboard-header p {
        margin-top: 10px;
    }
    
    .omega-table {
        font-size: 14px;
    }
    
    .omega-table th,
    .omega-table td {
        padding: 8px;
    }
}

@media screen and (max-width: 480px) {
    .omega-button {
        width: 100%;
        text-align: center;
    }
    
    .omega-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Upload Progress Bar Styles */
.omega-upload-btn:disabled,
.omega-upload-btn.omega-uploading {
    background: #ccc !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.omega-upload-progress {
    margin-top: 20px;
}

.omega-progress-bar {
    width: 100%;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.omega-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa 0%, #00a0d2 100%);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    position: relative;
}

.omega-progress-percentage {
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    white-space: nowrap;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.omega-progress-text {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 10px 0 0 0;
}
