/* 
 * GEOme.cc Web App Styles
 * Custom styles on top of Bootstrap theme
 */

:root {
    --primary-color: #4a86e8;
    --secondary-color: #673ab7;
    --accent-color: #ff5722;
    --background-dark: #1e1e1e;
    --background-card: #292929;
    --text-light: #e0e0e0;
    --text-muted: #aaaaaa;
}

/* Audit check statuses */
.check-failed {
    background-color: rgba(255, 0, 0, 0.1);
    border-left: 3px solid #dc3545;
    padding-left: 10px;
}

.check-passed {
    background-color: rgba(0, 255, 0, 0.1);
    border-left: 3px solid #28a745;
    padding-left: 10px;
}

.check-not-tested {
    background-color: rgba(0, 0, 255, 0.05);
    color: #aaa;
    font-style: italic;
    border-left: 3px solid #6c757d;
    padding-left: 10px;
}

/* Score display */
.score-display {
    text-align: center;
    margin: 20px 0;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    line-height: 120px;
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin: 0 auto;
    background-color: var(--background-card);
    border: 4px solid;
}

.score-good {
    color: #28a745;
    border-color: #28a745;
}

.score-warning {
    color: #ffc107;
    border-color: #ffc107;
}

.score-danger {
    color: #dc3545;
    border-color: #dc3545;
}

/* Audit results categories */
.category-card {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.category-header {
    padding: 10px 15px;
    background-color: var(--background-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-score {
    font-size: 20px;
    font-weight: bold;
}

.category-body {
    padding: 15px;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Form styles */
.tab-content {
    padding: 20px 0;
}

.form-control-dark {
    background-color: #333;
    border-color: #444;
    color: #fff;
}

.form-control-dark:focus {
    background-color: #444;
    border-color: var(--primary-color);
    color: #fff;
}

/* Custom accordion styles for dark theme */
.accordion-button:not(.collapsed) {
    color: #fff;
    background-color: rgba(74, 134, 232, 0.2);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(2);
}