/* Component-specific Styles */

/* Dashboard Components */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #dee2e6;
    transition: transform 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card h3 { 
    color: #2c3e50; 
    margin-bottom: 15px;
    font-size: 18px;
}

.dashboard-card .number { 
    font-size: 2.5em; 
    font-weight: bold; 
    color: #3498db; 
    margin-bottom: 10px;
}

.dashboard-card .description {
    color: #666;
    font-size: 14px;
}

/* Document Management Components */
.document-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
}

.documents-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

.documents-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.documents-table tr:hover {
    background: #f8f9fa;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

/* Upload Components */
.upload-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px dashed #dee2e6;
    text-align: center;
    transition: all 0.3s;
}

.upload-section:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.upload-area {
    margin-bottom: 20px;
}

.upload-icon {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 15px;
}

.upload-description {
    color: #666;
    margin-bottom: 20px;
}

.file-input {
    display: none;
}

.file-input-label {
    background: #3498db;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-block;
    transition: background 0.3s;
}

.file-input-label:hover {
    background: #2980b9;
}

.upload-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    align-items: end;
    text-align: left;
    margin-top: 20px;
}

.upload-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* File Preview Component */
#filePreview {
    margin-top: 20px;
}

.file-preview-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #dee2e6;
}

.file-preview-header {
    margin-bottom: 10px;
    color: #2c3e50;
}

.file-preview-list {
    max-height: 200px;
    overflow-y: auto;
}

.file-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin: 4px 0;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.file-preview-info {
    flex: 1;
}

.file-preview-name {
    font-weight: 600;
}

.file-preview-size {
    color: #666;
    margin-left: 10px;
    font-size: 14px;
}

.remove-file-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.file-preview-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
    font-size: 14px;
    color: #666;
}

/* Compliance Query Components */
.query-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.query-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.query-textarea {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
}

/* Upload Results Component */
.upload-results-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #dee2e6;
}

.upload-results-header {
    color: #2c3e50;
    margin-bottom: 15px;
}

.upload-results-summary {
    margin-bottom: 15px;
}

.upload-results-list {
    max-height: 300px;
    overflow-y: auto;
}

.upload-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    border-radius: 6px;
    border: 1px solid;
}

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

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

.upload-result-info {
    flex: 1;
}

.upload-result-filename {
    font-weight: 600;
}

.upload-result-details {
    font-size: 14px;
    color: #666;
}

.upload-result-error-message {
    color: #721c24;
    font-size: 12px;
}

.upload-result-status {
    font-size: 20px;
}

.upload-result-success .upload-result-status {
    color: #155724;
}

.upload-result-error .upload-result-status {
    color: #721c24;
}

.upload-results-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    font-size: 14px;
    color: #666;
}

/* Matrix Components */
.matrix-status {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.matrix-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-success {
    background: #27ae60;
    color: white;
}

.status-error {
    background: #e74c3c;
    color: white;
}

.status-warning {
    background: #f39c12;
    color: white;
}

.status-info {
    background: #3498db;
    color: white;
}

