/* SRE Transformation Tools - Shared Styles */

.tool-container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
}

.tool-header {
    text-align: center;
    margin-bottom: var(--space-10);
    padding-bottom: var(--space-6);
    border-bottom: 2px solid var(--color-accent);
}

.tool-header h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-3);
    color: var(--color-primary);
}

.tool-header p {
    color: var(--color-text-muted);
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto;
}

.tool-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
}

.tool-section {
    margin-bottom: var(--space-8);
}

.tool-section:last-child {
    margin-bottom: 0;
}

.tool-section h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-border);
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-group label {
    font-weight: 600;
    color: var(--color-primary);
    font-size: var(--text-sm);
}

.form-group input,
.form-group select {
    padding: var(--space-3);
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: var(--text-base);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group .hint {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Button Styles */
.btn-calculate {
    background: linear-gradient(135deg, var(--color-accent), #4fd1c5);
    color: var(--color-white);
    border: none;
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: var(--space-4);
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Results Panel */
.results-panel {
    background: linear-gradient(135deg, rgba(95, 204, 219, 0.1), rgba(95, 204, 219, 0.05));
    border: 2px solid var(--color-accent);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    margin-top: var(--space-6);
}

.results-panel.hidden {
    display: none;
}

.results-panel h4 {
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    text-align: center;
}

/* Metric Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.metric-card {
    background: var(--color-white);
    padding: var(--space-4);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.metric-card .metric-value {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-1);
}

.metric-card .metric-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: var(--text-sm);
}

.status-green {
    background: rgba(72, 187, 120, 0.2);
    color: #276749;
}

.status-yellow {
    background: rgba(236, 201, 75, 0.2);
    color: #975a16;
}

.status-red {
    background: rgba(245, 101, 101, 0.2);
    color: #c53030;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-green .status-dot { background: #48bb78; }
.status-yellow .status-dot { background: #ecc94b; }
.status-red .status-dot { background: #f56565; }

/* Tool Hub Grid */
.tools-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.tool-preview-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.tool-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-accent);
}

.tool-preview-card .tool-icon {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.tool-preview-card h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.tool-preview-card p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

/* Responsive */
@media (max-width: 768px) {
    .tool-container {
        padding: var(--space-4);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Print styles */
@media print {
    .btn-calculate,
    header,
    footer {
        display: none;
    }

    .results-panel {
        page-break-inside: avoid;
    }
}
