:root {
    --primary: #007bff;
    --primary-dark: #0056b3;
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --text: #333;
    --success: #28a745;
    --error: #dc3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 16px;
}

.header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid #eee;
    margin-bottom: 5px;
    padding-bottom: 15px;
}

.logo-container {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 100%;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 0 5px rgba(0, 243, 255, 0.5));
    /* Default state: Slow Breathing */
    animation: breathe 3s infinite ease-in-out;
    transition: all 0.5s ease;
}

.logo-img.heartbeat {
    /* Active state: Fast Heartbeat */
    animation: heartbeat 1.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
    filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.8));
}

@keyframes breathe {

    0%,
    100% {
        filter: drop-shadow(0 0 5px rgba(0, 243, 255, 0.5));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.9));
        transform: scale(1.05);
    }
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.15);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.15);
    }

    70% {
        transform: scale(1);
    }
}

.header-text {
    display: flex;
    flex-direction: column;
}

.header h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.25em;
    letter-spacing: 0.5px;
}

.header p {
    margin: 2px 0 0;
    color: #007bff;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-group label {
    font-size: 0.8em;
    font-weight: 600;
    color: #666;
}

.form-select {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 0.9em;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    width: 100%;
    padding: 10px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

#progressContainer {
    margin-top: 20px;
}

.hidden {
    display: none;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    margin-bottom: 5px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background-color: var(--success);
    transition: width 0.5s ease;
}

#status {
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

.result-container {
    margin-top: 20px;
}

.section {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.section h4 {
    margin: 0 0 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.prompt-box {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fafafa;
}

.platform-tag {
    font-size: 0.75em;
    background: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
}

.prompt-content {
    font-size: 0.9em;
    color: #444;
    margin-top: 8px;
    white-space: pre-wrap;
}

.copy-btn {
    margin-top: 10px;
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}

.copy-btn:hover {
    background: var(--primary);
    color: white;
}

.summary-box {
    font-size: 0.85em;
    line-height: 1.5;
    overflow-x: auto;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 0.9em;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.styled-table thead tr {
    background-color: var(--primary);
    color: #ffffff;
    text-align: left;
    font-weight: 600;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
    border: 1px solid #f0f0f0;
}

.styled-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f9f9f9;
}

.styled-table tbody tr:hover {
    background-color: #f1f7ff;
}

.styled-table td:nth-child(2),
.styled-table td:nth-child(3) {
    direction: rtl;
    text-align: right;
}

.table-pipe {
    color: #ccc;
    margin: 0 2px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.copy-section-btn {
    background: #f1f3f5;
    border: 1px solid #e2e6ea;
    color: #333;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
}

.copy-section-btn:hover {
    background: #e9ecef;
}

.steps-box {
    margin-top: 12px;
    background: #f8f9fb;
    border: 1px solid #eef1f4;
    border-radius: 10px;
    padding: 10px 12px;
}

.steps-box h5 {
    margin: 0 0 8px 0;
}

/* Glassmorphism Support Button (V4.9) */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}



/* V5.3 Support Section */
.support-section {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.support-header {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.email-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.email-text {
    font-size: 0.85em;
    color: #333;
    font-family: monospace;
}

.copy-email-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75em;
    padding: 2px 6px;
    color: #555;
    transition: all 0.2s;
}

.copy-email-btn:hover {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
}

/* Refine & Improve UI (V5.0) */
.refine-container {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #eee;
}

.refine-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s;
}

.refine-btn:hover {
    transform: scale(1.05);
}

.refine-input-group {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.refine-input {
    flex: 1;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
}

.refine-submit {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* Blueprint / 4-Pillar Layout */
.blueprint-card {
    background: #ffffff;
    border-left: 4px solid var(--primary);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.blueprint-phase {
    font-weight: 700;
    color: var(--primary-dark);
    display: block;
    margin-bottom: 4px;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blueprint-content {
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
}