/* Common Tool Styles */

/* Tool Main Container */
.tool-main {
    padding: 3rem 0;
    background: #f8fafc;
    min-height: 60vh;
}

/* Form Styling */
.card.shadow-custom {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.card.shadow-custom .card-body {
    padding: 2.5rem;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.input-group-lg .form-control {
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group-lg .form-control:focus {
    border-color: var(--sst-primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    outline: none;
}

.input-group-lg .input-group-text {
    background: transparent;
    border: 2px solid #e5e7eb;
    border-right: none;
    border-radius: 12px 0 0 12px;
    padding: 1rem 1.25rem;
}

.btn-primary.btn-lg {
    background: linear-gradient(135deg, var(--sst-primary) 0%, var(--sst-primary-dark) 100%);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
}

.btn-primary.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.4);
}

/* Result Section */
.result-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.result-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

/* Score Circle */
.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--sst-primary) 0deg, var(--sst-primary) calc(var(--score) * 3.6deg), #e5e7eb calc(var(--score) * 3.6deg));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto 1.5rem;
}

.score-circle::before {
    content: '';
    position: absolute;
    inset: 8px;
    background: #ffffff;
    border-radius: 50%;
}

.score-value {
    position: relative;
    z-index: 2;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--sst-primary);
}

.score-label {
    text-align: center;
    font-weight: 600;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Score Status Colors */
.score-circle.status-excellent {
    background: conic-gradient(#10b981 0deg, #10b981 calc(var(--score) * 3.6deg), #e5e7eb calc(var(--score) * 3.6deg));
}

.score-circle.status-good {
    background: conic-gradient(#3b82f6 0deg, #3b82f6 calc(var(--score) * 3.6deg), #e5e7eb calc(var(--score) * 3.6deg));
}

.score-circle.status-average {
    background: conic-gradient(#f59e0b 0deg, #f59e0b calc(var(--score) * 3.6deg), #e5e7eb calc(var(--score) * 3.6deg));
}

.score-circle.status-poor {
    background: conic-gradient(#ef4444 0deg, #ef4444 calc(var(--score) * 3.6deg), #e5e7eb calc(var(--score) * 3.6deg));
}

/* Score Breakdown */
.score-breakdown {
    margin-top: 2rem;
}

.score-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.score-category {
    font-weight: 600;
    color: #374151;
    min-width: 120px;
}

.score-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sst-primary), var(--sst-primary-dark));
    border-radius: 4px;
    transition: width 0.8s ease;
}

.score-percent {
    font-weight: 600;
    color: var(--sst-primary);
    min-width: 40px;
    text-align: right;
}

/* Meta Section */
.meta-section {
    margin-bottom: 2.5rem;
}

.meta-item {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.meta-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.meta-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

/* Status Badges */
.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-badge.status-good {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-warning {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.status-error {
    background: #fee2e2;
    color: #991b1b;
}

/* Length Indicators */
.length-indicator {
    margin-top: 0.75rem;
}

.length-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.length-fill {
    height: 100%;
    background: var(--sst-primary);
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* Alert Styling */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
}

/* Recommendation Cards */
.recommendation-card {
    background: linear-gradient(135deg, #fef7ff 0%, #f3e8ff 100%);
    border: 1px solid #e879f9;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.recommendation-card h5 {
    color: #7c3aed;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.recommendation-card p {
    color: #6b7280;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-main {
        padding: 2rem 0;
    }

    .result-section {
        padding: 1.5rem;
    }

    .score-circle {
        width: 100px;
        height: 100px;
    }

    .score-value {
        font-size: 1.5rem;
    }

    .score-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .score-category {
        min-width: auto;
    }
}