/* Global Tools CSS */

/* Tool Layout */
.tool-section {
    padding: 80px 0 60px;
}

.tool-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Glass Panel Enhancements */
.glass-panel {
    background: rgba(18, 18, 18, 0.75);
    /* Darker background for readability */
    /* Fallback */
    backdrop-filter: blur(16px);
    /* Stronger blur */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
    /* Ensure above flying emojis */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Tool Input */
.tool-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.tool-input {
    width: 100%;
    padding: 20px;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: all 0.3s;
}

.tool-input:focus {
    border-color: var(--primary-color, #00e5ff);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

/* Tool Actions Bar */
.tool-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-tool {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-tool:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.privacy-notice {
    font-size: 0.8rem;
    color: var(--text-muted, #888);
    text-align: center;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Results Area */
.result-panel {
    display: none;
    /* Hidden by default */
    animation: fadeIn 0.5s ease;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 8px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 auto 30px;
    position: relative;
}

.score-bad {
    border-color: #ff4d4d;
    color: #ff4d4d;
}

.score-ok {
    border-color: #ffd700;
    color: #ffd700;
}

.score-good {
    border-color: #00e5ff;
    color: #00e5ff;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted, #aaa);
    margin-bottom: 5px;
}

.metric-val {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Feedback List */
.feedback-list {
    text-align: left;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.feedback-item {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feedback-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.feedback-icon {
    font-size: 1.2rem;
    min-width: 24px;
}