/* ===== Shared Variables & Resets ===== */
:root {
    /* Colors */
    --bg-body: #f9f9f9;
    --primary-color: #4CAF50;
    --primary-hover: #45a049;
    --secondary-color: #333333;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --success-color: #4CAF50;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
    --btn-primary-color: #333;
    --menu-color: #181818;
	--menu-hover-color: hsl(0deg 0% 9.41% / 14%);

    /* Typography */
    --font-size: 16px;
    --font-verse-size: 18px;
    --line-height: 1.6;

    /* Layout */
    --maxwidth: 1200px;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --border-radius: 6px;
	--border: 1px solid var(--border-color);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

menu,
ul,
ol {
    list-style-type: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: var(--line-height);
    color: var(--text-color);
    background-color: var(--bg-body);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

a {
    color: var(--menu-color);
    text-decoration: none;
}

/* ===== Shared Components ===== */

.flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    color: white;
    background-color: var(--btn-primary-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: .875rem;
    transition: all 0.2s ease;
}

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

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-danger {
    background-color: var(--danger-color);
}

.btn.btn-link {
    background-color: transparent;
    border: var(--border);
    color: #333;
}

/* ===== Shared Verse Styles ===== */
.verse {
    position: relative;
    display: inline;
    line-height: 2;
    margin: 0 0.2em;
    padding: 0.1em 1.2em 0.1em 0.2em;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

/* .verse.selected {
    background-color: rgba(76, 175, 80, 0.2);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
} */

.verse-number {
    font-size: 0.8em;
    position: relative;
    margin-right: .5em;
    color: #737373;
    top: -.3em;
}

.verse-paragraph {
    margin-bottom: 1.2em;
    line-height: 1.8;
    text-align: justify;
}

/* ===== Shared Note Styles ===== */
.note-icon {
    display: inline-block;
    margin-left: 5px;
    cursor: pointer;
    color: #4a90e2;
    font-size: 0.9em;
    vertical-align: middle;
    position: relative;
    transition: opacity 0.2s ease;
}

.note-icon:hover {
    opacity: 0.8;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.note-popup {
    display: none;
    position: absolute;
    width: 300px;
    max-height: 300px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid #e0e0e0;
}

.note-popup.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.note-header {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.note-header h4 {
    margin: 0;
    font-size: 1em;
    color: #333;
    font-weight: 600;
}

.note-content {
    padding: 16px;
    max-height: 250px;
    overflow-y: auto;
    color: #333;
    line-height: 1.5;
}

.close-note {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #6c757d;
    line-height: 1;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-note:hover {
    color: #000;
    background-color: rgba(0,0,0,0.05);
}
