/* Periscope Corporate Styling - Finalized */
body {
    font-family: 'Gotham', Arial, sans-serif; 
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 0;
}

/* --- Top Navigation Bar --- */
.top-nav {
    background-color: #ffffff;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 4px solid #131224; /* Deep Navy */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-nav img.logo {
    height: 45px; 
    width: auto;
}

/* --- Login Page Specifics --- */
.login-container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(102, 101, 104, 0.1); 
    width: 100%;
    max-width: 380px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-container img.login-logo {
    display: block;
    margin: 0 auto 20px auto;
    height: 50px;
}

/* --- Dashboard & Module Layout --- */
.dashboard { 
    max-width: 850px; 
    margin: 40px auto; 
    background: white; 
    padding: 40px; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(102, 101, 104, 0.08); 
}

.header-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 2px solid #f4f7f6; 
    padding-bottom: 15px; 
    margin-bottom: 25px; 
}

h2 { 
    margin: 0; 
    color: #131224; 
    font-weight: bold;
    font-size: 24px;
}

h3 { 
    color: #131224; 
    margin-top: 35px; 
    font-size: 18px;
}

/* --- Universal Pill Badges --- */
.status-badge { 
    display: inline-block; 
    padding: 8px 16px; 
    margin-bottom: 20px; 
    border-radius: 20px; 
    background-color: #f4f7f6; 
    color: #666568; 
    font-weight: bold; 
    font-size: 13px; 
    border: 1px solid #ccc;
    white-space: nowrap; /* This stops the checkmark from wrapping to a new line! */
    text-align: center;
    min-width: 90px; /* Ensures 'Incomplete' and 'Completed' badges are roughly the same width */
}

.module-actions .status-badge {
    margin-bottom: 0; 
}

.status-badge.completed { 
    background-color: #e6f6ef; 
    color: #00a767; 
    border-color: #00a767;
}

/* --- Forms & General Buttons --- */
input {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0 20px 0;
    border: 1px solid #ccc; 
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Gotham', Arial, sans-serif;
    font-size: 14px;
}

input:focus {
    outline: none;
    border-color: #efac27; 
    box-shadow: 0 0 0 2px rgba(239, 172, 39, 0.2);
}

button, .start-btn {
    width: 100%;
    display: inline-block;
    text-align: center;
    padding: 14px;
    background-color: #131224; 
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Gotham', Arial, sans-serif;
}

button:hover, .start-btn:hover { 
    background-color: #efac27; 
    color: #131224; 
}

.logout-btn { 
    background: white; 
    color: #ca2027; 
    border: 1px solid #ca2027; 
    padding: 8px 16px; 
    width: auto; 
    border-radius: 4px;
}

.logout-btn:hover { 
    background: #ca2027; 
    color: white; 
}

/* --- Module Cards (Dashboard) --- */
.module-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 20px 25px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    border-left: 5px solid #efac27; 
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.module-card:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.module-info h3 { margin: 0 0 8px 0; }
.module-info p { margin: 0; font-size: 14px; color: #666568; }
.module-actions { display: flex; align-items: center; gap: 15px; }

/* --- Cold Calling Script Box --- */
.script-box {
    position: relative;
    background: linear-gradient(to right, #ffffff, #f9fbfb);
    border-left: 5px solid #efac27; 
    padding: 25px 30px 25px 60px; 
    margin: 30px 0;
    font-size: 16px;
    font-weight: 500;
    color: #131224; 
    border-radius: 0 8px 8px 0;
    line-height: 1.6;
    box-shadow: 0 4px 15px rgba(19, 18, 36, 0.08); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.script-box:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(19, 18, 36, 0.15);
}

.script-box::before {
    content: "\201C"; 
    font-family: Georgia, serif;
    position: absolute;
    left: 15px;
    top: 10px;
    font-size: 70px;
    color: rgba(239, 172, 39, 0.3); 
    line-height: 1;
}

.script-text {
    display: block;
    color: #131224;
}

/* --- High-Fidelity Audio Play Button --- */
.play-audio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important; 
    background-color: #efac27; 
    color: #131224; 
    border: none;
    border-radius: 20px; 
    padding: 8px 18px; 
    font-size: 14px; 
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
    font-family: 'Gotham', Arial, sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

.play-audio-btn:hover {
    background-color: #131224; 
    color: white;
    transform: translateY(-2px); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* --- Video Container --- */
.video-container { 
    position: relative; 
    padding-bottom: 56.25%; 
    height: 0; 
    overflow: hidden; 
    margin-top: 30px; 
    border-radius: 4px; 
    border: 1px solid #f4f7f6;
}
.video-container iframe { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
}

/* --- Bottom Navigation Buttons --- */
.nav-buttons { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    gap: 20px; 
    margin-top: 40px; 
    border-top: 2px solid #e0e0e0; 
    padding-top: 25px; 
}

.nav-buttons a { 
    text-decoration: none; 
    background-color: #131224; 
    color: #ffffff; 
    padding: 12px 24px; 
    border-radius: 4px; 
    font-weight: bold; 
    font-size: 14px;
    font-family: 'Gotham', Arial, sans-serif; 
    transition: all 0.3s ease;
    text-align: center;
}

.nav-buttons a:hover { 
    background-color: #efac27 !important; 
    color: #131224 !important; 
}

.nav-buttons a.secondary { 
    background-color: white; 
    color: #131224;
    border: 2px solid #131224;
}

.nav-buttons a.secondary:hover {
    background-color: #131224 !important;
    color: white !important;
}

#error-msg { color: #ca2027; text-align: center; margin-top: 15px; font-size: 14px; font-weight: bold; }