@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Material Design Icons */
.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
    font-size: 18px;
    vertical-align: middle;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(40px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    background-color: rgba(var(--bg-lighter), 0.4);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: color-mix(in srgb, var(--bg-main) 62%, transparent);
    border-radius: 21px;
    padding: 34px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    color: var(--main-text);
    font-size: 20px;
    font-weight: 600;
}

.close-button {
    background: none;
    border: none;
    color: var(--secondary-text);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-button:hover {
    color: var(--main-text);
}

.modal-body p {
    color: var(--secondary-text);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Form Links */
.form-links {
    margin-top: 16px;
    text-align: center;
}

.link-button {
    background: none;
    border: none;
    color: var(--secondary-accent);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.link-button:hover {
    color: var(--secondary-accent-darker);
}

/* Status Messages */
.success-message {
    color: var(--success-color);
    font-weight: 500;
}

.error-message {
    color: var(--error-color);
    font-weight: 500;
}

.success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--success-color);
    border-radius: 8px;
    padding: 12px 16px;
}

.error {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid var(--error-color);
    border-radius: 8px;
    padding: 12px 16px;
}

/* Verification Message Styles */
.verification-message {
}

.verification-message h3 {
    color: var(--primary-accent);
    margin-bottom: 16px;
    font-size: 1.2em;
}

.verification-message p {
}

.verification-message p strong {
    color: var(--secondary-accent);
}

.verification-message p em {
    color: var(--text-secondary);
    font-style: italic;
}

.verification-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
}

.verification-actions .login-button {
    min-width: 160px;
}

/* Persistent Error Messages */
.error.persistent {
    background-color: rgba(244, 67, 54, 0.15);
    border: 2px solid var(--error-color);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    animation: slideDown 0.4s ease-out;
}

.error-message-content {
    /* text-align: center; */
    /* position: relative; */
    max-width: calc(100% - 10px);
}

.error-message-content h4 {
    color: var(--error-color);
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
}

.error-message-content p {
    margin: 8px 0;
    color: var(--main-text);
    line-height: 1.5;
}

.error-message-content p strong {
    color: var(--error-color);
    font-weight: 600;
}

.close-error-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--error-color);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-error-btn:hover {
    background-color: rgba(244, 67, 54, 0.1);
}

/* User Profile Header Styles */
.header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px 0;
    margin-bottom: 20px;
}

.header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Remove header-right since it's no longer used */

.user-profile-section {
    position: relative;
    /* top: 10px; */
    /* right: 10px; */
    flex: 1;
    flex-direction: row;
    display: flex;
    gap: 8px;
}
.user-profile-btn-all{
    width: 50px;
    height: 50px;
    padding: 0 !important;
    margin: 0;
    flex: 1;
    border-radius: 50% !important;
    overflow: hidden;
    border: 1px solid var(--bg-main);
}
.user-profile-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: color-mix(in srgb, var(--bg-main) 0%, transparent);
    color: var(--main-text);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(50px);
}
.view-recordings-list-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    background: color-mix(in srgb, var(--bg-main) 0%, transparent);
    color: var(--main-text);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(50px);
}
.view-recordings-list-btn:hover {
    background: color-mix(in srgb, var(--bg-main) 90%, transparent);
    border-color: var(--primary-accent);
    transform: translateY(-1px);
    border-width: 1px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    display: none;
}

.user-profile-button:hover {
    background: color-mix(in srgb, var(--bg-main) 90%, transparent);
    border-color: var(--primary-accent);
    transform: translateY(-1px);
    border-width: 1px;
}

.user-avatar {
    width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    /* border: 2px solid var(--faded-grey); */
}

.user-name {
    font-weight: 500;
    color: var(--main-text);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.user-nickname {
    font-size: 12px;
    color: var(--secondary-text);
    font-weight: 400;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 20px;
    color: var(--secondary-text);
    transition: transform 0.2s ease;
}

.user-profile-button:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: color-mix(in srgb, var(--bg-main) 95%, transparent);
    border: 1px solid var(--bg-lighter);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    min-width: 200px;
    z-index: 1000;
    animation: slideDown 0.2s ease-out;
}

.user-dropdown.hidden {
    display: none;
}

/* Profile Modal Styles */
.profile-section {
    display: inherit;
    flex-direction: column;
    gap: 24px;
}

.profile-avatar-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: color-mix(in srgb, var(--bg-lighter) 20%, transparent);
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--bg-lighter) 40%, transparent);
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.profile-avatar-large:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.change-avatar-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    background: var(--secondary-accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.change-avatar-btn:hover {
    background: var(--secondary-accent-darker);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.change-avatar-btn .material-symbols-outlined {
    font-size: 18px;
}

.profile-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-field label {
    font-weight: 600;
    color: var(--main-text);
    font-size: 14px;
    margin-bottom: 4px;
}

.profile-input {
    padding: 12px 16px;
    background: color-mix(in srgb, var(--bg-main) 80%, transparent);
    border: 2px solid color-mix(in srgb, var(--bg-lighter) 60%, transparent);
    border-radius: 8px;
    color: var(--main-text);
    font-size: 14px;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.profile-input:focus {
    outline: none;
    border-color: var(--secondary-accent);
    background: color-mix(in srgb, var(--bg-main) 90%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary-accent) 20%, transparent);
}

.profile-input:read-only {
    background: color-mix(in srgb, var(--bg-lighter) 30%, transparent);
    cursor: not-allowed;
    opacity: 0.7;
}

.nickname-input-group {
    display: flex;
    align-items: center;
    background: color-mix(in srgb, var(--bg-main) 80%, transparent);
    border: 2px solid color-mix(in srgb, var(--bg-lighter) 60%, transparent);
    border-radius: 8px;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.nickname-input-group:focus-within {
    border-color: var(--secondary-accent);
    background: color-mix(in srgb, var(--bg-main) 90%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--secondary-accent) 20%, transparent);
}

.nickname-prefix {
    padding: 12px 0 12px 16px;
    color: var(--secondary-text);
    font-weight: 500;
    font-size: 14px;
}

.nickname-input {
    border: none !important;
    background: transparent !important;
    padding: 12px 16px 12px 4px !important;
    box-shadow: none !important;
}

.nickname-input:focus {
    box-shadow: none !important;
}

.field-help {
    font-size: 12px;
    color: var(--secondary-text);
    margin-top: 4px;
    font-style: italic;
}

.profile-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 23px 0px 0px 0px;
    border-top: 1px solid color-mix(in srgb, var(--bg-lighter) 40%, transparent);
}

.profile-logout-section {
    display: flex;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid color-mix(in srgb, var(--bg-lighter) 40%, transparent);
}

.btn-secondary, .btn-primary {
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.btn-secondary:hover, .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.btn-primary {
    background: var(--secondary-accent);
    color: var(--main-text);
    border:none;
}
.btn-secondary {
    background: none;
    color: var(--secondary-accent);
    border: 1px solid var(--bg-lighter);
}
.btn-logout {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    background: color-mix(in srgb, var(--error-color) 90%, transparent);
    color: var(--main-text);
    border: 1px solid var(--error-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: var(--error-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
}

.btn-logout .material-symbols-outlined {
    font-size: 18px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--main-text);
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 4px;
    margin: 4px;
}

.dropdown-item:hover {
    background-color: color-mix(in srgb, var(--secondary-accent) 20%, transparent);
}

.dropdown-item .material-symbols-outlined {
    font-size: 20px;
    color: var(--secondary-text);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--bg-lighter);
    margin: 8px 0;
}

.login-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--secondary-accent);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.login-button:hover {
    background: var(--secondary-accent-darker);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.login-button .material-symbols-outlined {
    font-size: 20px;
}

/* Avatar Modal Styles */
.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-accent);
    margin: 10px 0;
}

.current-avatar-section {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: color-mix(in srgb, var(--bg-lighter) 30%, transparent);
    border-radius: 8px;
}

.current-avatar-section h4 {
    margin: 0 0 10px 0;
    color: var(--main-text);
    font-size: 14px;
}

.avatar-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.avatar-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.avatar-option label {
    font-weight: 500;
    color: var(--main-text);
    font-size: 14px;
}

.avatar-input {
    padding: 8px 12px;
    border: 1px solid var(--bg-lighter);
    border-radius: 6px;
    background: color-mix(in srgb, var(--bg-main) 95%, transparent);
    color: var(--main-text);
    font-size: 14px;
}

.avatar-input:focus {
    outline: none;
    border-color: var(--secondary-accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--secondary-accent) 20%, transparent);
}

.avatar-button {
    padding: 8px 16px;
    background: var(--secondary-accent);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.avatar-button:hover {
    background: var(--secondary-accent-darker);
    transform: translateY(-1px);
}

.avatar-button.secondary {
    background: color-mix(in srgb, var(--bg-lighter) 50%, transparent);
    color: var(--main-text);
    border: 1px solid var(--bg-lighter);
}

.avatar-button.secondary:hover {
    background: color-mix(in srgb, var(--bg-lighter) 70%, transparent);
    transform: translateY(-1px);
}

/* Color Palette */
:root {
    --primary-accent: #ff6b6b;
    --primary-accent-darker:#a33636;/* #ee5a52;*/
    --secondary-accent: #4a90e2;
    --secondary-accent-darker: #3466a1;
    --main-text: #f2f2f7;
    --secondary-text: #8e8e93;
    --faded-grey: #61666f;
    --bg-lighter: #2a2a2a;
    --bg-main: #1c1c1e;
    --bg-darker: #0f0f10;
    --success-color: #4caf50;
    --error-color: #f44336;
    --warning-color: #ffbc59;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-darker);
    color: var(--main-text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}


#bg{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 0;
    background: linear-gradient(150deg, var(--bg-darker) 15%, #000000 50%, var(--bg-darker) 90%);
    z-index: -2;
    background-image: url(https://santaapache.com/static/img/bg.jpg);
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    opacity: 1;
    filter: blur(100px) hue-rotate(
180deg) invert(100%);
    opacity: 1;
    background-image: url(/static/images/wave_bg.png);
    background-image: url(/static/images/logo_dark.png);
}


/* Mobile responsive body styles */
@media (max-width: 899px) {
    body {
        display: block;
        align-items: stretch;
    }
}
.container {
    text-align: left;
    padding: 1rem 3rem;
    width: 100%;
    max-width: calc(900px + 6rem);
    margin-bottom: 55px; /* Add space for the music player */
}
#recording-sheet-container {
    background-color: color-mix(in srgb, var(--bg-main) 95%, transparent);
    padding: 20px 20px 22px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    margin-bottom: 55px; /* Add space for the music player */
    margin: 30px auto 90px;
    backdrop-filter: blur(10px);
}

#recording-sheet {
    width: 100%;
    min-height: 300px; /* Ensure minimum height for the sheet */
}

/* Song information header */
.recording-info-header {
    text-align: center;
    margin-bottom: 5px;
    padding: 5px 15px 20px 15px;
    background: transparent;
}

.recording-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--main-text);
    margin: 0px;
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
    width: auto;
    position: relative;
    display: inline-block;
    padding: 0px 15px;
    margin-bottom: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 200px;
    margin-top: 10px;
}

.recording-title:hover {
    border-color: var(--secondary-text);
    background: rgba(255, 255, 255, 0.05);
}

.recording-title.editing {
    border-color: var(--secondary-accent);
    background: rgba(74, 144, 226, 0.1);
}

.recording-title-input {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--main-text);
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
    border: 2px solid var(--secondary-accent);
    border-radius: 8px;
    padding: 8px 12px;
    background: rgba(74, 144, 226, 0.1);
    outline: none;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.recording-title-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 0;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.recording-title-actions.visible {
    opacity: 1;
    height: auto;
    margin: 12px 0px 20px;
}

.recording-title-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recording-title-save {
    background: var(--secondary-accent);
    color: white;
}

.recording-title-save:hover {
    background: #3a7bc8;
    transform: translateY(-1px);
}

.recording-title-cancel {
    background: transparent;
    color: var(--secondary-text);
    border: 1px solid var(--secondary-text);
}

.recording-title-cancel:hover {
    background: var(--secondary-text);
    color: var(--bg-main);
}

/* Song Tags System */
.song-tags-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 11px 0 0px;
    padding: 0 20px;
}

.song-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #182f4a;
    padding: 6px 4px 6px 11px;
    border-radius: 16px;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    font-weight: normal;
    cursor: auto;
    transition: all 0.3s ease;
    opacity: 0.8;
    height: 11px;
    color: #aeaec8;
    /* border: 1px solid #4a90e2; */
}

.song-tag:hover {
    /* border: 1px solid var(--secondary-accent); */
    /* transform: translateY(-1px); */
    opacity: 0.9;
    /* color: white; */
}

.song-tag-remove {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #aeaec8;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.song-tag-remove:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.song-tag-add {
    background: transparent;
    color: var(--secondary-accent);
    border: none;
    padding: 4px 10px;
    border-radius: 17px;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
    background: #182f4a;
}

.song-tag-add:hover {
    background: #182f4a;
    color: white;
    border-style: none;
    opacity: 1;
    /* border: 1px solid var(--secondary-accent); */
}

.song-tag-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.song-tag-input {
    background: #182f4a;
    color: white;
    border: 1px solid var(--secondary-accent);
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: normal;
    outline: none;
    min-width: 100px;
    max-width: 200px;
    display: block;
    margin-bottom: 0;
}

.song-tag-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateY(-10px);
}

.song-tag-actions.visible {
    opacity: 1;
    height: auto;
    transform: translateY(0);
}

.song-tag-btn {
    padding: 4px 8px;
    border: none;
    border-radius: px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.song-tag-save {
    background: #182f4a;
    color:white;
    padding:7px 15px;
    /* border:1px solid var(--secondary-accent); */
    color: var(--secondary-accent);
}

.song-tag-save:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.song-tag-cancel {
    background: transparent;
    color: white;
    padding:7px 15px;
    /* border: 1px solid white; */
}

.song-tag-cancel:hover {
    background: white;
    color: var(--secondary-accent);
}

.recording-metadata {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.recording-metadata-item {
    /* font-size: 1rem; */
    color: var(--secondary-accent);
    font-weight: normal;
    font-family:
    'Inter', sans-serif;
    margin: 0;
    font-size: 12px;
}
.recording-metadata-item b{
    font-size: 12px;
    color:var(--secondary-text);
    font-weight: 600;
}

/* Responsive adjustments for song header */
@media (max-width: 768px) {
    .recording-title {
        font-size: 2rem;
        margin-bottom: 10px;
        margin-top: 0px;
    }
    
    .recording-metadata-item {
        font-size: 0.9rem;
    }
    
    .recording-info-header {
        padding: 15px 15px;
        margin-bottom: 5px;
    }
}

/* Mobile responsive styles */
@media (max-width: 899px) {
    .container {
        width: 100%;
        max-width: none;
        padding: 2rem 2% 2rem; /* Increased bottom padding for fixed record section */
        border-radius: 0;
        margin: 0;
        min-height: 100vh;
        box-sizing: border-box;
    }
    #recording-sheet-container {
        width: 100%;
        max-width: none;
        padding: 13px 10px; /* Increased bottom padding for fixed record section */
        box-sizing: border-box;
    }
    
    /* Adjust header for mobile */
    .header {
        margin-bottom: 1rem;
    }
    
    .logo {
        max-width: 120px;
        height: auto;
    }
    
    /* Adjust main record section for mobile */
    .main-record-section {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 2rem 1.5rem;
        background: linear-gradient(135deg, var(--secondary-accent) 0%, var(--secondary-accent-darker) 100%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        z-index: 100;
    }
    
    .main-record-btn {
        padding: 1.5rem 2.5rem;
        font-size: 1.1rem;
        min-width: 250px;
        justify-content: center;
        border-radius: 50px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.2);
        background: transparent !important;
        box-shadow: none !important;
        margin-top: 0px !important;
    }
    
    
    /* Adjust microphone selector for mobile */
    .microphone-selector-container {
        width: 100%;
        max-width: 300px;
    }
    
    .microphone-select {
        padding: 0.8rem;
        font-size: 0.9rem;
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-radius: 25px;
        color: white;
    }
    
    .microphone-selector-container label {
        color: rgba(255, 255, 255, 0.9);
        font-weight: 600;
    }
}

/* Header with Logo */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: -29px;
    text-shadow: 2px 4px 6px black;
    flex-direction: column;
}

.logo-img {
    height: 58px;
    width: auto;
    margin-right: 9px;
    margin-top: 3px;
    filter: drop-shadow(2px 4px 6px black);
    color: black;
}

.logo-domain{
    color: var(--faded-grey);
    font-size: 12px;
    font-weight: normal;
}
.logo-text{
    color: var(--primary-accent);
    font-size: 47px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}
.logo-text-highlight{
    color: #ffffff;
}

h1 { 
    color: #ffffff; 
    font-size: 2.5rem;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
h2 { 
    border-bottom: 2px solid #444; 
    padding-bottom: 0.5rem; 
    margin-top: 2rem; 
    color: #ffffff;
    font-weight: 600;
}
h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.subtitle {
    color: #e0e0e0;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.description {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}
.visualization-header {
    margin: 1.5rem 0 1rem 0;
    text-align: center;
}
.structure-description {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}
.controls button {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    margin: 0.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}
#recordButton { 
    background: linear-gradient(135deg, var(--primary-accent), var(--primary-accent-darker)); 
    color: white; 
    font-weight: 500;
}
#recordButton:hover { 
    background: linear-gradient(135deg, #ff5252, #e53935); 
}
#recordButton.recording { 
    animation: pulse 1.5s infinite; 
    background: linear-gradient(135deg, #ff5252, #e53935);
}
#playButton { 
    background: linear-gradient(135deg, #4CAF50, #45a049); 
    color: white; 
    font-weight: 500;
}
#playButton:hover { 
    background: linear-gradient(135deg, #45a049, #3d8b40); 
}
.nav-button {
    display: inline-block;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    margin: 0.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    font-weight: 500;
}
.nav-button:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#status {
    margin-top: 1rem;
    color: var(--main-text);
    min-height: 20px;
    display: flex;
    justify-content: center;
    width: calc(100% - 103px);
    max-width: 400px;
    animation: slideDown 0.3s ease-out;
    margin: auto;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hidden { display: none !important; }
.analysis-summary {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 1rem 0;
    gap: 1rem;
}
.metric-card {
    background: linear-gradient(135deg, #2a2a2a, #1e1e1e);
    border: 2px solid #444;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.metric-label {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.metric-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
}

/* --- Ideal Design Styles (matching the image) --- */
#recording-editor {
    position: relative;
    width: 100%;
    min-height: 250px; /* Ensure minimum height for the editor */
    /* margin-top: 1.5rem; */
    /* background: #2a2a2a; */
    /* border-radius: 8px; */
    /* border: 1px solid #444; */
    overflow: hidden;
}

.recording-timeline{
    position: relative;
    width: 100%;
    min-height: 200px; /* Ensure minimum height for canvas */
    background: color-mix(in srgb, var(--bg-lighter) 40%, transparent);
    border-radius: 0px 0px 12px 12px;
    /* border: 1px solid rgb(68, 68, 68); */
    overflow: hidden;
    backdrop-filter: blur(1px);
}

/* Custom waveform canvas styling */
#recording-editor canvas {
    
}

/* Override for the recording timeline canvas specifically */
.recording-timeline-canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 5 !important;
    background: transparent !important;
    pointer-events: none !important;
    /* width and height are set dynamically via JavaScript */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Musical row styling */
.musical-row {
    position: absolute;
    left: 0;
    width: 100%;
    height: 80px; /* Fixed height for all musical rows */
    /* top and z-index are set dynamically via inline styles */
}

/* Waveform area styling */
.waveform-area {
    position: absolute;
    top: 0;
    left: 50px; /* Fixed left position (timeSignatureWidth) */
    width: calc(100% - 70px); /* Fixed width calculation */
    height: 100%;
    /*cursor: crosshair;*/
    /* No dynamic styles needed - all properties are static */
}

/* Bar line styling */
.bar-line {
    position: absolute;
    top: 0;
    height: 100%;
    /* left is set dynamically via inline styles */
}

/* Bar number styling */
.bar-number {
    position: absolute;
    /* left is set dynamically via inline styles */
}

/* Chord block styling - moved to main definition below */

/* Progress bar styling */
#progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%; /* Fill the height of the waveform area */
    background-color: #ff6b6b;
    z-index: 10;
    display: none;
    transition: left 0.1s ease; /* Only animate left movement, not top */
    pointer-events: none;
    border: none;
    outline: none;
}

/* Chord autocomplete styling */
.chord-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #444;
    border: 1px solid #666;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

.chord-suggestion {
    padding: 4px 8px;
    cursor: pointer;
    color: white;
    border-bottom: 1px solid #555;
}

.chord-suggestion:hover {
    background-color: #555;
}

.chord-suggestion:last-child {
    border-bottom: none;
}
#annotation-overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

/* Musical Row Layout */
.musical-row {
    position: absolute;
    width: 100%;
    background: transparent;
}

/* Time Signature */
.time-signature {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* background: #2a2a2a; */
    /* border-right: 1px solid #444; */
    font-family: 'Inter', sans-serif;
}
.time-sig-top, .time-sig-bottom {
    font-size: 16px;
    font-weight: 600;
    color: white;
    line-height: 1;
}
.time-sig-top {
    margin-bottom: 1px;
}

/* Waveform Area */
.waveform-area {
    position: absolute;
    top: 0;
    height: 100%;
    background: transparent; /* Remove background to show waveform */
    /*cursor: crosshair; /* Crosshair cursor for seeking */
    z-index: 15; /* Ensure it's above canvas and progress bar for clicks */
    pointer-events: auto; /* Enable click events */
    transition: background-color 0.2s ease;
}

.waveform-area:hover {
    /*background: rgba(255, 107, 107, 0.05); /* Subtle hover effect */
    background: #ffffff05;
}

/* Bar Lines */
.bar-line {
    position: absolute;
    top: 0;
    width: 1px;
    background: white;
    z-index: 2;
}

.bar-line.double-bar {
    width: 3px;
    background: linear-gradient(to right, #d7d8da 0%, #d7d8da 2px, transparent 2px, transparent 2px, #60666f 2px, #60666f 3px);
}

.bar-line.double-bar.last-bar {
    width: 3px;
    background: linear-gradient(to right, #60666f 0%, #60666f 1px, transparent 1px, transparent 1px, #d7d8da 1px, #d7d8da 3px);
}

.bar-line.single-bar {
    width: 1px;
    background: #d7d8da;
}
.bar-number {
    position: absolute;
    top: -20px; /* Position above the bar lines */
    font-size: 12px;
    font-weight: 500;
    color: white;
    transform: translateX(-50%);
    z-index: 3;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.bar-time {
    font-size: 8px; /* Smaller font for time */
    font-weight: 400;
    opacity: 0.4; /* More subtle */
}

/* Chord Blocks - Exact match to the image */
.chord-block {
    position: absolute;
    background: transparent;
    border: none;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: text;
    transition: all 0.2s ease;
    top: 0;
    height: 20px;
    min-width: 40px; /* Increased from 20px to 40px for better visibility */
}

.chord-block:empty {
    min-width: 40px; /* Increased from 20px to 40px for better visibility */
    background: rgba(255, 255, 255, 0.05); /* Subtle background for empty blocks */
    border: 1px dashed rgba(255, 255, 255, 0.2); /* Dashed border for empty blocks */
}

.chord-block:hover {
    background: rgb(107 132 255 / 10%);
    color: white;
    border-radius: 21px;
    padding: 3px 8px;
    margin-top: -3px;
    margin-left: -8px;
    box-shadow: 0px 0px 10px -2px #1e1e1e;
}
.chord-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--secondary-accent);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    text-align: center;
    margin-left: 5px;
}
.chord-block:hover .chord-label {
    color: #ffffff;
}
/* Editing Toolbar */
.editing-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: color-mix(in srgb, var(--bg-lighter) 40%, transparent);
    /* border: 3px solid var(--bg-main); */
    margin-bottom: 2px;
    backdrop-filter: blur(10px);
    border-radius: 12px 12px 0px 0px;
}
.toolbar-btn.saved{
    color: rgb(65 144 68);
    background-color: transparent;
    backdrop-filter: blur(9px);
}
.toolbar-btn {
    padding: 8px 12px;
    background: var(--bg-main);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-btn:hover {
    background: rgba(80, 80, 80, 0.9);
    border-color: #888;
}

.toolbar-btn.disabled {
    background: var(--bg-darker);
    color: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

.toolbar-btn.disabled:hover {
    background: var(--bg-darker);
    border-color: transparent;
}


.toolbar-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.toolbar-btn:disabled:hover {
    background: rgba(60, 60, 60, 0.8);
    border-color: #666;
}

/* Chord Editor */
.chord-editor {
    position: absolute;
    background: rgba(30, 30, 30, 0.95);
    border: 2px solid var(--primary-accent);
    border-radius: 8px;
    padding: 8px;
    z-index: 20;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.chord-input {
    background: rgba(50, 50, 50, 0.9);
    border: 1px solid #666;
    border-radius: 4px;
    color: white;
    padding: 6px 8px;
    font-size: 14px;
    font-weight: 500;
    width: 80px !important;
    outline: none;
}

.chord-input:focus {
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.chord-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(40, 40, 40, 0.95);
    border: 1px solid #666;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 120px;
    overflow-y: auto;
    z-index: 21;
    text-align: left;
}

.chord-suggestion {
    padding: 6px 8px;
    color: white;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid #444;
}

.chord-suggestion:hover {
    background: rgba(60, 60, 60, 0.8);
}

.chord-suggestion:last-child {
    border-bottom: none;
}

/* Progress Bar - Enhanced styling */
#progress-bar {
    position: absolute;
    top: 0;
    width: 3px;
    background: var(--primary-accent);
    z-index: 10;
    border-radius: 1px;
    box-shadow: 0 0 4px rgba(255, 107, 107, 0.8);
    transition: left 0.1s ease;
}
#progress-bar::before,
#progress-bar::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-accent);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 107, 107, 0.8);
}
#progress-bar::before {
    top: -4px;
}
#progress-bar::after {
    bottom: -4px;
}

/* Music Player Styles */
#music-player {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(var(--bg-darker), 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    min-width: 320px;
    max-width: 500px;
    width: 90%;
    padding: 10px 0px 5px;
    bottom: 15px;
}

.player-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 20px;
}

.player-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.player-recording-title {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recording-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bar-beat-info {
    font-size: 11px;
    color: var(--secondary-accent);
    font-weight: 500;
}

.recording-time {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    background: transparent;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: scale(1.05);
}

.control-btn:active {
    transform: scale(0.95);
}

.play-btn {
    background: linear-gradient(135deg, var(--secondary-accent) 0%, var(--secondary-accent-darker) 100%);
    color: #ffffff;
    width: 48px;
    height: 48px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.play-btn:hover {
    background: linear-gradient(135deg, var(--secondary-accent-darker) 0%, var(--secondary-accent) 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: scale(1.05);
}

.play-btn:active {
    transform: scale(0.95);
}

.record-btn {
    background: linear-gradient(135deg, var(--primary-accent) 0%, #ee5a24 100%);
    color: #ffffff;
    width: 40px;
    height: 40px;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

/* Skip buttons (skip_previous, skip_next) */
.skip-btn {
    background: transparent;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
}

.skip-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: scale(1.05);
}

.skip-btn:active {
    transform: scale(0.95);
}

/* Seek buttons (replay, forward_media) */
.seek-btn {
    background: transparent;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
}

.seek-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: scale(1.05);
}

.seek-btn:active {
    transform: scale(0.95);
}

.record-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    transform: scale(1.05);
}

.record-btn:active {
    transform: scale(0.95);
}

.record-btn.recording {
    background: linear-gradient(135deg, #ff4757 0%, #c44569 100%);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3); }
    50% { box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6); }
    100% { box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3); }
}

.control-btn svg {
    transition: all 0.2s ease;
}

/* Recording Overlay Styles */
#recording-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.recording-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 40px;
    max-width: 900px;
    margin: auto;
    justify-content: center;
    min-width: 760px;
    max-width: 900px;
    width: calc(100% - 70px);
}
@media (max-width: 899px) { /*mobile adjustment for recording*/
    .recording-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 40px;
    max-width: 600px;
    margin: 0 12px;
    justify-content: center;
    width: auto;
    min-width: calc(100% - 80px);
    }
}

.recording-header {
    display: flex;
    justify-content: center;
    align-items: center;
}

.recording-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 21px;
}

.recording-label {
    background: #ff4757;
    color: white;
    padding: 7px 15px;
    border-radius: 7px;
    font-size: 20px;
    font-weight: normal;
    font-family: 'Inter', sans-serif;
}

#recording-timer {
    color: white;
    font-size: 47px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}


.recording-waveform {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#recording-waveform-visual {
    width: 100%;
    height: 142px;
    background: transparent;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    border: none;
}

.recording-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px 0;
}

.big-record-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-accent) 0%, #ee5a24 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.big-record-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.4);
    transform: scale(1.05);
}

.big-record-btn:active {
    transform: scale(0.95);
}

.big-record-btn.recording {
    background: linear-gradient(135deg, #ff4757 0%, #c44569 100%);
    animation: bigPulse 1.5s infinite;
}

@keyframes bigPulse {
    0% { box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3); }
    50% { box-shadow: 0 12px 40px rgba(255, 107, 107, 0.6); }
    100% { box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3); }
}

.record-button-inner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.record-button-inner svg {
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0;
}

.recording-footer {
    text-align: center;
    color: #888;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    margin-top: 0px;
}

.microphone-select {
    background: transparent;
    color: var(--secondary-text);
    border: none;
    border-radius: 5px;
    padding: 12px 0;
    font-size: 12px;
    font-family:
    'Inter', sans-serif;
    cursor: pointer;
    text-align: center;
    width: auto;
    border: none;
}

.microphone-select:focus {
    outline: none;
    border-color: #667eea;
}

.microphone-select option {
    background: #2a2a2a;
    color: white;
}

/* Song Name Input Styles */
#recording-name-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 69%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

#recording-name-input.hidden {
    display: none !important;
}

/* Upload Section */
.upload-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 40px 20px;
}

.upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 40px;
    border-radius: 20px;
    background: transparent;
    min-width: 200px;
    color: var(--faded-grey);
}

.upload-container:hover {
    border-color: var(--secondary-accent);
    background: rgba(74, 144, 226, 0.05);
    transform: translateY(-2px);
}

.upload-icon {
    transition: all 0.3s ease;
}
.upload-icon span{
    font-size: 30px;
}

.upload-container:hover .upload-icon {
    opacity: 1;
    color: var(--secondary-accent);
}

.upload-text {
    font-size: 15px;
    font-weight: normal;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.upload-container:hover .upload-text {
    color: var(--secondary-accent);
}

/* Main Page Record Section */
.main-record-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 0 0;
    padding: 40px;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    border-radius: 38px;
}

.main-record-btn {
    background: none;
    border: none;
    border-radius: 20px;
    padding: 30px 0px 0px;
    color: white;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    flex-direction: column;
    min-width: 280px;
}

.main-record-btn:hover .record-button-inner {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(74, 144, 226, 0.4);
}

.main-record-btn:active {
    transform: scale(0.95);
}

.record-button-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-accent) 0%, var(--primary-accent-darker) 100%);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.record-button-text {
    font-size: 18px;
    font-weight: 600;
}

.microphone-selector-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 300px;
}

.microphone-selector-container label {
    color: var(--secondary-text);
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    margin-bottom: 4px;
    display: block;
}

.recording-name-container {
    text-align: center;
    max-width: 300px;
    width: 90%;
    padding: 20px 40px;
    background: var(--bg-darker);
    border-radius: 17px;
    box-shadow: 0px 0px 25px 10px black;
    border: 3px solid var(--bg-darker);
}
.recording-name-container label span {
    padding-bottom: 0px;
    display: inline-block;
    color: var(--secondary-text);
}
.recording-name-container label {
    display: flex;
    color: white;
    font-size: 12px;
    font-weight: normal;
    margin-bottom: 7px;
    font-family: 'Inter', sans-serif;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

#recording-name-field {
    width: calc(100% - 40px);
    padding: 15px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background: #2a2a2a;
    color: white;
    font-family: 'Inter', sans-serif;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}
.recording-name-container-text{
    color: var(--faded-grey);
    font-size: 14px;
    font-weight: normal;
    font-family: 'Inter', sans-serif;
    margin-bottom: 20px;
}

#recording-name-field:focus {
    outline: none;
    border-color: var(--secondary-accent);
}

.analysis-status {
    color: #888;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.analysis-status::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #444;
    border-top: 2px solid var(--main-text);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #music-player {
        bottom: 10px;
        /* left: 50%; */
        /* right: 10px; */
        /* transform: none; */
        /* width: auto; */
        /* min-width: auto; */
    }
    
    .player-container {
        padding: 12px 16px;
        gap: 16px;
    }
    
    .recording-title {
        font-size: 13px;
    }
    
    .recording-time {
        font-size: 11px;
    }
    
    .play-btn {
        width: 44px;
        height: 44px;
    }
    
    .control-btn {
        padding: 6px;
    }
}
@keyframes pulse { 
    0% { box-shadow: 0 0 0 0 rgba(207, 102, 121, 0.7); } 
    70% { box-shadow: 0 0 0 10px rgba(207, 102, 121, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(207, 102, 121, 0); } 
}

/* Comment Input Buttons */
.comment-input-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: flex-end;
}

.comment-cancel-btn {
    background: transparent;
    border: none;
    color: var(--main-text);
    padding: 14px 20px;
    border-radius: 22px;
    font-size: 14px;
    font-family:
    'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-cancel-btn:hover {
    background: #444;
    border-color: #888;
}

.comment-reply-btn {
    background: color-mix(in srgb, var(--secondary-accent) 50%, transparent);
    border: none;
    color: white;
    padding: 14px 20px;
    border-radius: 23px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.comment-reply-btn:hover {
    background: var(--secondary-accent-darker);
}

/* Comment Actions */
.comment-actions {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.comment-edit-btn,
.comment-delete-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 4px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-edit-btn:hover {
    background: rgba(74, 144, 226, 0.2);
    color: var(--secondary-accent);
}

.comment-delete-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    color: var(--primary-accent);
}

.comment-edit-btn .material-symbols-outlined,
.comment-delete-btn .material-symbols-outlined {
    font-size: 14px;
}

/* Comments Section - Clean Design */
.comments-section {
    padding: 20px;
}

.comment-item {
    margin-bottom: 20px;
    padding-bottom: 16px;
}

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

.comment-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
    gap: 8px;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-author-image {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-author-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.comment-author-time {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--secondary-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 17px;
    margin-right: 8px;
    flex-shrink: 0;
}

.comment-avatar-image {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    flex-shrink: 0;
}

.comment-author {
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary-accent);
    margin: 0;
    line-height: 1.2;
}

.comment-time {
    font-size: 12px;
    color: var(--secondary-text);
    margin: 0;
    line-height: 1.2;
}

.comment-content {
    font-size: 14px;
    color: var(--main-text);
    line-height: 1.5;
    margin-top: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Comment System Styles */
.comment-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #d7d8da;
    /* border: 1px solid white; */
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    font-size: 10px;
    font-weight: bold;
    color: #1e1e1e;
    transition: all 0.2s ease;
    bottom: 0px;
    font-weight: bold;
    font-size: 13px;
}

/* Speech bubble triangle */
.comment-icon::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 3px;
    width: 0;
    height: 0;
    border-left: 0px solid transparent;
    border-right: 7px solid transparent;
    border-top: 6px solid #d7d8da;
    z-index: 1;
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.loading-logo-img {
    width: 48px;
    height: 48px;
    animation: logoBounce 2s ease-in-out infinite;
}

.loading-logo-text {
    font-size: 32px;
    font-weight: 600;
    animation: textFade 3s ease-in-out infinite;
}

.loading-logo-text-highlight {
    color: var(--primary-accent);
}

.loading-logo-domain {
    color: #888;
    font-size: 24px;
}

.loading-progress-container {
    width: 300px;
    margin: 0 auto;
}

.loading-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 16px;
}

.loading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b9d, #4b90e3);
    border-radius: 2px;
    width: 0%;
    animation: progressFill 4s ease-out forwards;
}

.loading-text {
    font-size: 14px;
    color: #ccc;
    animation: textPulse 2s ease-in-out infinite;
}

/* Animations */
@keyframes logoBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes textFade {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes progressFill {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Record button pulse animation (targeting the pink circle in the logo) */
.loading-logo-img {
    filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.3));
}

.loading-logo-img:hover {
    filter: drop-shadow(0 0 20px rgba(255, 107, 157, 0.6));
}

/* Recording Name Input Buttons */
.recording-name-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.save-btn, .cancel-btn, .download-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.download-btn{
    width:auto;
    height:auto;
    color: var(--secondary-accent);
    background: transparent;
    font-weight: normal;
}

.save-btn {
    background: var(--primary-accent);
    color: white;
}

.save-btn:hover {
    background: var(--primary-accent-darker);
    transform: translateY(-1px);
}

.cancel-btn {
    background: var(--bg-lighter);
    color: var(--main-text);
    border: 2px solid var(--border-color);
}

.cancel-btn:hover {
    background: var(--border-color);
    transform: translateY(-1px);
}


.comment-icon:hover {
    background: var(--secondary-accent-darker);
    border-color: var(--secondary-accent-darker);
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4), 0 4px 8px rgba(102, 126, 234, 0.3);
    color: var(--main-text);
}

.comment-icon:hover::after {
    border-bottom-color: var(--secondary-accent-darker);
}

.comment-icon:hover::before {
    border-bottom-color: var(--secondary-accent-darker);
}

.comment-icon.active-beat {
    background: var(--primary-accent);
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3);
    animation: pulse-active 2s infinite;
}

.comment-icon.active-beat::after {
    border-bottom-color: var(--primary-accent);
    border-top-color: var(--primary-accent);
}

.comment-icon.active-beat::before {
    border-bottom-color: var(--primary-accent);
}

@keyframes pulse-active {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(255, 107, 107, 0.1);
    }
}

/* Comment Icon Tooltip */

.comment-icon[title]:hover::after {
    content: attr(title);
    position: fixed;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    white-space: pre-line;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    border: 1px solid #444;
    max-width: 250px;
    word-wrap: break-word;
    text-align: left;
    margin-top: 8px;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    width: 200px;
    height: fit-content;
    padding: 20px;
    z-index: 99999;
}

.comment-icon[title]:hover::before {
    content: '';
    position: fixed;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 12px solid transparent;
    border-bottom-color: #1a1a1a;
    z-index: 99999;
    margin-top: -13px;
    z-index: 100000;
}

/* Comment Sidebar - Desktop */

.notes-drawer {
    position: fixed;
    top: 0;
    right: -440px;
    width: 400px;
    height: calc(100vh - 40px);
    background: rgba(var(--bg-dark),0.9);
    border: 1px solid var(--bg-lighter);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.5);
    border-radius: 14px;
    margin: 10px;
    padding: 10px 10px;
    backdrop-filter: blur(40px);
}

.notes-drawer.open {
    right: 0;
}

/* Comment Sidebar - Mobile */
@media (max-width: 768px) {
    .notes-drawer {
        position: fixed;
        top: auto;
        bottom: -60vh;
        right: 0;
        left: 0;
        width: 100%;
        height: 50vh;
        border-left: none;
        border-top: 1px solid #444;
        transition: bottom 0.3s ease;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
        margin: 0px;
        padding: 10px 0;
        border-radius: 14px 14px 0 0;
    }
    
    .notes-drawer.open {
        bottom: 0;
    }
    
    .notes-drawer-header {
        flex-shrink: 0;
        cursor: grab;
        user-select: none;
        position: relative;
    }
    
    .notes-drawer-header:active {
        cursor: grabbing;
    }
    
    .notes-drawer-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: #666;
        border-radius: 2px;
        margin-bottom: 8px;
    }
    
    .notes-drawer-content {
        flex: 1;
        overflow-y: auto;
        padding: 0;
    }
    
    .notes-drawer-content::-webkit-scrollbar {
        width: 4px;
    }
    
    .notes-drawer-content::-webkit-scrollbar-track {
        background: #333;
    }
    
    .notes-drawer-content::-webkit-scrollbar-thumb {
        background: #666;
        border-radius: 2px;
    }
}

/* Responsive canvas and player adjustments */
@media (min-width: 769px) {
    .notes-drawer.open ~ #recording-sheet-container {
        margin-right: 400px;
        transition: margin-right 0.3s ease;
    }
    
    .notes-drawer.open ~ #music-player {
        right: 400px;
        transition: right 0.3s ease;
    }
}

@media (max-width: 768px) {
    .notes-drawer.open ~ #music-player {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        z-index: 999;
        border-radius: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .notes-drawer.open ~ #recording-sheet-container {
        /* Dynamic margin-bottom will be set by JavaScript based on drawer height */
        transition: margin-bottom 0.3s ease;
    }
    
    /* Floating play button for mobile when drawer is open */
    .floating-play-button {
        position: absolute;
        top: -21px;
        right: 2px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: var(--secondary-accent);
        border: none;
        color: white;
        font-size: 20px;
        cursor: pointer;
        z-index: 1001;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .floating-play-button:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    }
    
    .floating-play-button:active {
        transform: scale(0.95);
    }
    
    .floating-play-button.hidden {
        display: none;
    }
}

.notes-drawer-header {
    padding: 20px;
    border-bottom: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.beat-info-header {
    padding: 16px 20px;
    border-bottom: 1px solid #444;
    background: #2a2a2a;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

.beat-info-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #667eea;
}

.beat-info-details {
    font-size: 12px;
    color: #cccccc;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.beat-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.beat-info-label {
    color: #888;
    font-weight: 500;
}

.beat-info-value {
    color: #ffffff;
    font-weight: 600;
}

.notes-drawer-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    margin: -15px 0px -15px 20px;
}
.notes-drawer-title span{
    font-size: 14px;
    font-weight: normal;
    color: var(--primary-accent);
}

.close-drawer {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.close-drawer:hover {
    background: #444;
    color: #ffffff;
}

/* Thread List */
.note-list {
    padding: 20px;
    text-align: left;
}

.thread-item {
    background: #333;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: 1px solid #444;
}

.thread-item:hover {
    background: #3a3a3a;
}

.thread-item.active {
    background: #444;
    border-color: #667eea;
}

.thread-header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.note-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    flex: 1;
}

.thread-count {
    color: #888;
    font-size: 12px;
    margin-left: 8px;
}

.thread-arrow {
    color: #888;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.thread-item.active .thread-arrow {
    transform: rotate(90deg);
}

.create-note-btn {
    width: 100%;
    background: #444;
    border: 1px solid #555;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 16px;
}

.create-note-btn:hover {
    background: #555;
}

/* Active Thread View */
.active-thread {
    padding: 20px;
    border-top: 1px solid #444;
}

.note-title-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.thread-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.create-note-btn-small {
    background: #667eea;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.create-note-btn-small:hover {
    background: var(--secondary-accent-darker);
    transform: scale(1.1);
}

.back-to-threads-btn {
    background: #666666;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
    margin-right: 8px;
}

.back-to-threads-btn:hover {
    background: #555555;
    transform: scale(1.1);
}

.note-title-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.thread-menu {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.thread-menu:hover {
    background: #444;
    color: #ffffff;
}


/* Comment Input */

/* Dialogs */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(11px);
}

.dialog-overlay.open {
    opacity: 1;
    visibility: visible;
}

.dialog {
    background: color-mix(in srgb, var(--bg-lighter) 80%, transparent);
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 9px 32px black;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    margin: 20px 16px;
    backdrop-filter: blur(10px);
}


.dialog-overlay.open .dialog {
    transform: scale(1);
}

.dialog-title {
    color: var(--secondary-accent);
    font-size: 24px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    margin: 0px;
    text-align: center;
}
.dialog-subtitle {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 20px;
    margin-top: 6px;
    margin-left: 3px;
    margin-bottom: 23px !important;
    text-align: center;
}


.dialog-input {
    width: calc(100% - 34px);
    background: #333;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 0;
}

.dialog-input::placeholder {
    color: #888;
}

.dialog-input:focus {
    outline: none;
    border-color: var(--secondary-accent);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Textarea specific styles */
.dialog-input[type="textarea"],
.dialog-input[rows] {
    min-height: 80px;
    resize: vertical;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

.dialog-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.dialog-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.dialog-btn.primary {
    background: var(--secondary-accent);
    color: #ffffff;
}

.dialog-btn.primary:hover {
    background: var(--secondary-accent-darker);
}

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

.dialog-btn.secondary:hover {
    background: #555;
}

.dialog-btn.danger {
    background: #FFD700;
    color: #222;
}

.dialog-btn.danger:hover {
    background: #FFC107;
}

/* New Redesigned Comment System Styles */
.note-list-item {
    background: color-mix(in srgb, var(--secondary-accent) 50%, transparent);
    border-radius: 11px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    transform: rotate(0.5deg);
    /* border-left: 4px solid rgba(0, 0, 0, 0.1); */
    user-select: none;
}

.note-list-item:nth-child(odd) {
    transform: rotate(0.5deg);
}

.note-list-item:nth-child(even) {
    transform: rotate(-0.3deg);
}

.note-list-item.dragging {
    opacity: 0.5;
    transform: rotate(0deg) scale(1.05);
    z-index: 1000;
    cursor: grabbing;
}

.note-list-item.pinned {
    background: color-mix(in srgb, var(--secondary-accent) 60%, transparent);
    transform: rotate(0deg);
    /* border-left: 4px solid rgba(255, 255, 255, 0.3); */
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    backdrop-filter: blur(1px);
}

.note-list-item.pinned::after {
    content: '📍';
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary-accent);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
    display: none;
}

.note-list-item:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.3),
        0 12px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    z-index: 10;
}

.note-list-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 23px 23px 0;
    border-color: transparent rgba(0, 0, 0, 0.1) transparent transparent;
    border-radius: 0 15px 0 0;
    display: none;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    border-bottom: 1px solid color-mix(in srgb, var(--main-text) 20%, transparent);
    padding-bottom: 4px;
}

.note-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.note-actions button span.material-symbols-outlined{
    font-size: 17px;
}

.pin-btn, .edit-btn, .archive-btn, .drag-handle {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--main-text);
}


.pin-btn:hover, .edit-btn:hover, .archive-btn:hover, .drag-handle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.pin-btn.pinned {
    background: rgba(255, 255, 255, 0.4);
    color: #1c1c1e;
}

.edit-btn:hover {
    background: rgb(255 255 255 / 21%);
}

.archive-btn:hover {
    background: rgba(255, 107, 107, 0.3);
}

.drag-handle {
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

/* Section separators for notes */
.notes-section-header {
    font-size: 14px;
    font-weight: normal;
    color: var(--secondary-text);
    letter-spacing: 0.5px;
    margin: 16px 0 8px 0;
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 5;
}

/* Auto-scroll to focused inputs */
.dialog-input:focus,
.comment-input:focus {
    scroll-margin-top: 20px;
    scroll-margin-bottom: 20px;
}

.notes-section-header:first-child {
    margin-top: 0;
}

.note-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.note-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    line-height: 1.4;
    /* font-style: italic; */
    /* text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); */
    white-space: pre-wrap;
    word-wrap: break-word;
}

.note-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.note-tag {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: normal;
    border: none;
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.3);
}
.create-note-tags-container{
    display: flex; 
    flex-wrap: wrap; 
    gap: 6px; 
    margin-bottom: 10px; 
    min-height: 20px;
}

.create-note-tags-container .note-tag{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #444444;
    color: #cccccc;
    padding: 3px 3px 3px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #666666;
    text-align: center;
}

.note-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.note-comment-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.note-comment-count .material-symbols-outlined{
    font-size: 17px;
}
.note-comment-count .comment-icon {
    font-size: 12px;
}

.note-time {
    font-size: 12px;
    color: var(--main-text);
    font-weight: 400;
}

/* Note Detail View Styles */
.create-note-section {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #444444;
}

.note-detail-header {
    padding: 20px;
    background: #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.note-detail-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
}

.note-detail-header .menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #cccccc;
    font-size: 18px;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.note-detail-header .menu-btn:hover {
    background: #444444;
    color: #ffffff;
}


/* Back to notes button */
.back-to-notes-btn {
    background: color-mix(in srgb, var(--main-text) 10%, transparent);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 40px;
}
.back-to-notes-btn .material-symbols-outlined{
    font-size: 12px;
}

.back-to-notes-btn:hover {
    background: #555555;
    transform: translateY(-1px);
}

.back-to-notes-btn:active {
    transform: translateY(0);
}

/* Create note section with button layout */
.create-note-section {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.create-note-section .create-new-note-btn {
    margin-bottom: 0;
}

.create-note-section .back-to-notes-btn {
    margin-bottom: 0;
}

/* Post-it Note Design */
.postit-note {
    margin: 20px 20px 30px;
    background: color-mix(in srgb, var(--secondary-accent) 50%, transparent);
    border-radius: 8px;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    padding: 0px 20px;
}
.postit-note.archived {
    margin: 20px 20px 30px;
    background: color-mix(in srgb, var(--faded-grey) 50%, transparent);
    border-radius: 8px;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    transform: rotate(
1deg);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    padding: 0px 20px;
}

.postit-note.pinned {
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.postit-note.pinned::after {
    content: '📍';
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--main-text);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.9);
    z-index: 10;
}

.postit-note:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.4),
        0 12px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.postit-note::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 20px 20px 0;
    border-color: transparent rgba(0, 0, 0, 0.1) transparent transparent;
    border-radius: 0 8px 0 0;
    display: none;
}

.postit-header {
    padding: 16px 0px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.postit-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--main-text);
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.postit-content {
    padding: 15px 0px 20px;
}

.postit-description {
    font-size: 12px;
    color: var(--main-text);
    margin-bottom: 15px;
    line-height: 1.5;
    /* text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); */
    word-wrap: break-word;
    text-align: left;
    white-space: pre-wrap;
}

.postit-description em {
    color: rgba(242, 242, 247, 0.7);
    font-style: italic;
}

.postit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.postit-tags .note-tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--main-text);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border: none;
}

.postit-tags em {
    color: rgba(242, 242, 247, 0.7);
    font-style: italic;
    font-size: 14px;
}

/* Note Metadata */
.note-metadata {
    font-size: 12px;
    color: rgba(242, 242, 247, 0.4);
    margin: -14px 6px 25px;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
}

/* Note tags display (read-only) - keeping for backward compatibility */
.note-tags-display {
    padding: 0px 20px;
    background: var(--bg-lighter);
}

.note-tags-display .note-tag {
    display: inline-block;
    background: #444444;
    color: #cccccc;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #666666;
    margin-right: 6px;
    margin-bottom: 6px;
}

.note-tags-display em {
    color: #888888;
    font-style: italic;
    font-size: 14px;
}

/* Create note button in notes list */
.create-note-btn {
    background: color-mix(in srgb, var(--secondary-accent) 50%, transparent);
    color: var(--main-text);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.create-note-btn:hover {
    background: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.create-note-btn:active {
    transform: translateY(0);
}

/* Archived toggle button */
.archived-toggle-btn {
    background: color-mix(in srgb, var(--main-text) 10%, transparent);
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-bottom: 15px;
}

.archived-toggle-btn:hover {
    background: #555555;
    transform: translateY(-1px);
}

.archived-toggle-btn:active {
    transform: translateY(0);
}

/* Archived notes styling */
.note-list-item.archived {
    opacity: 0.6;
    background: #8e8e93 !important;
    transform: rotate(-2deg) !important;
    border-left: 4px solid rgba(0, 0, 0, 0.2);
}

.note-list-item.archived:hover {
    opacity: 0.8;
    transform: rotate(0deg) scale(1.02) !important;
}

.archived-label {
    color: rgba(28, 28, 30, 0.7);
    font-size: 12px;
    font-style: italic;
    font-weight: normal;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
}

/* Note Description Section */
.note-description-section {
    padding: 0px 20px;
    background: #2a2a2a;
}

.note-description-content {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.5;
    font-style: italic;
    padding: 0px;
    margin: 0px 0px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Tags Section */
.tags-section {
    padding: 20px;
    border-bottom: 1px solid #444444;
    background: #2a2a2a;
}

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

.tags-header-left {
    display: flex;
    align-items: center;
}

.tags-header .tag-icon {
    margin-right: 8px;
    font-size: 14px;
    color: #cccccc;
}
.tags-header .tag-icon .tag-icon-svg{
    width: 16px;
    color: white;
    margin-bottom: -4px;
}

.tags-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.add-tag-toggle {
    background: var(--secondary-accent-darker);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.add-tag-toggle:hover {
    background: #4a5bc8;
    transform: scale(1.1);
}

.create-new-thread-btn {
    background: var(--secondary-accent-darker);
    color: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.create-new-thread-btn:hover {
    background: #4a5bc8;
    transform: translateY(-1px);
}

.labels-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag-item {
    background: #444444;
    color: #cccccc;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #666666;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.tag-item:hover {
    background: #555555;
}

.tag-remove {
    background: none;
    border: none;
    color: #999999;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.tag-remove:hover {
    background: #666666;
    color: #cccccc;
}

.add-tag-container {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.add-tag-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #666666;
    border-radius: 16px;
    font-size: 12px;
    background: #444444;
    color: #cccccc;
    outline: none;
    transition: all 0.2s ease;
}

.add-tag-input:focus {
    border-color: var(--secondary-accent-darker);
    background: #555555;
    color: #ffffff;
}

.add-tag-input::placeholder {
    color: #999999;
}

.add-tag-btn {
    background: var(--secondary-accent);
    color: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-tag-btn:hover {
    background: var(--secondary-accent-darker);
    transform: translateY(-1px);
}

.create-new-note-btn {
    background: color-mix(in srgb, var(--secondary-accent) 50%, transparent);
    border: none;
    padding: 8px 21px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s 
ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: white;
}

.create-new-note-btn:hover {
    background: var(--secondary-accent-darker);
    transform: translateY(-1px);
}


/* Comment Input */
.comment-input-section {
    padding: 0px 20px 20px;
}

.comment-input-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--faded-grey);
    border-radius: 24px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background-color: transparent;
    color: #ffffff;
    outline: none;
    resize: none;
    height: 47px;
    min-height: 47px;
    max-height: 120px;
    transition: all 0.2s ease;
    line-height: 1.4;
    overflow-y: scroll;
    box-sizing: border-box;
}

.comment-input:focus {
    border-color: color-mix(in srgb, var(--main-text) 20%, transparent);
    background-color: color-mix(in srgb, var(--main-text) 10%, transparent);
    border-radius: 22px;
    color: var(--main-text);
    backdrop-filter: blur(21px);
}

.comment-input::placeholder {
    color: #999999;
}

/* Comments Header Text */
.comments-header-text {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    margin-bottom: 12px;
    margin-top: 20px;
}

.comments-header-text:first-child {
    margin-top: 0;
}

.comment-send-btn {
    background: var(--secondary-accent);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.comment-send-btn:hover {
    background: var(--secondary-accent-darker);
    transform: translateY(-1px);
}

.comment-send-btn:disabled {
    background: #666666;
    cursor: not-allowed;
    transform: none;
}

/* Mobile adjustments for new design */
@media (max-width: 768px) {
    .note-list-item {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .note-title {
        font-size: 15px;
    }
    
    .note-detail-header {
        padding: 16px;
    }
    
    .note-detail-title {
        font-size: 18px;
    }
    
    .tags-section {
        padding: 16px;
    }
    
    .comments-section {
        padding: 16px;
    }
    
    .comment-input-section {
        padding: 16px;
    }
    
    /* Recording screen mobile adjustments */
    .recording-container {
        padding: 20px 0px;
        max-width: 100%;
    }
    
    .recording-header {
        margin-bottom: 40px;
    }
    
    .recording-waveform {
        margin: 40px 0;
        min-height: 100px;
    }
    
    .recording-controls {
        margin: 40px 0;
    }
    
    .recording-footer {
        /* margin-top: 20px; */
    }
    
    /* Home screen mobile adjustments */
    .upload-section {
        padding: 20% 20px 20px;
    }
    
    .upload-container {
        padding: 30px 20px;
        min-width: 150px;
    }
    
    .upload-icon svg {
        width: 50px;
        height: 50px;
    }
    
    .upload-text {
        font-size: 16px;
    }
    
    .main-record-section {
        padding: 20px;
        max-width: 100%;
        margin: 20px 0;
    }
    
    .main-record-btn {
        min-width: 250px;
        padding: 30px 40px 0px;
        font-size: 18px;
    }
    
    .microphone-selector-container {
        max-width: 100%;
    }
}
.comments-header-text{
    color: var(--main-text);
    font-weight: bold;
    font-size: 18px;
    margin: 0px 20px;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.hamburger-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--main-text);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.hamburger-menu:hover .hamburger-line {
    background: var(--secondary-accent);
}

/* Floating Record Button */
.floating-record-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-accent) 0%, var(--primary-accent-darker) 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    z-index: 1001;
}

.floating-record-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.6);
}

.floating-record-btn:active {
    transform: scale(0.95);
}

/* Responsive adjustments for recordings list */
@media (max-width: 768px) {
    .recordings-container {
        padding: 16px;
    }
    
    .recording-item {
        padding: 16px;
    }
    
    .recording-title {
        font-size: 16px;
    }
    
    .recording-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .recording-play-controls {
        align-self: flex-end;
    }
    
    .recording-waveform {
        height: 50px;
    }
    
    .floating-record-btn {
        width: 56px;
        height: 56px;
        bottom: 16px;
        right: 16px;
    }
}

@media (min-width: 769px) {
    .recordings-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
        gap: 20px;
    }
    
    .recording-item {
        min-height: 200px;
    }
}

/* Waveform image styling */
.waveform-image {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%; /* Default full width, overridden by inline style for last row */
    height: 60px;
    pointer-events: none;
    z-index: 1;
    margin-top: 10px;
}

/* Mobile controls for notes drawer */
.mobile-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.floating-play-button {
    background: var(--secondary-accent);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.floating-play-button:hover {
    background: var(--secondary-accent-darker);
}

.floating-seek-back-button {
    background: var(--faded-grey);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    position: absolute;
    right: 58px;
}

.floating-seek-back-button:hover {
    background: var(--secondary-accent-hover);
}

.floating-play-button .material-symbols-outlined,
.floating-seek-back-button .material-symbols-outlined {
    color: white;
    font-size: 17px;
}

/* Notes drawer header positioning */
.notes-drawer-header {
    position: relative;
}

/* Show mobile controls only on mobile */
@media (max-width: 768px) {
    .mobile-controls {
        position: absolute;
        top: 33px;
        right: 56px;
    }
}

@media (min-width: 769px) {
    .mobile-controls {
        display: none;
    }
}

/* Archive animation */
@keyframes archiveNote {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.95);
        background-color: #666666;
    }
    100% {
        opacity: 0;
        transform: scale(0.9);
        background-color: #666666;
    }
}

@keyframes archiveNoteActive {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.98);
        background-color: #666666;
    }
    100% {
        opacity: 0.5;
        transform: scale(0.95);
        background-color: #666666;
    }
}

.note-list-item.archiving {
    animation: archiveNote 1s ease-in-out forwards;
}

.postit-note.archiving {
    animation: archiveNoteActive 1s ease-in-out forwards;
}

/* Pin animation */
@keyframes pinNote {
    0% {
        transform: translateX(0) scale(1);
    }
    50% {
        transform: translateX(-10px) scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: translateX(0) scale(1);
    }
}

@keyframes unpinNote {
    0% {
        transform: translateX(0) scale(1);
    }
    50% {
        transform: translateX(10px) scale(0.95);
    }
    100% {
        transform: translateX(0) scale(1);
    }
}

.note-list-item.pinning {
    animation: pinNote 0.6s ease-in-out;
}

.note-list-item.unpinning {
    animation: unpinNote 0.6s ease-in-out;
}

/* ===== LOGIN PAGE STYLES ===== */

/* Login Section */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    /* min-height: 100vh; */
    padding: 20px;
}

.login-container {
    padding: 40px;
    width: 100%;
    max-width: 400px;
    background-color: color-mix(in srgb, var(--bg-main) 95%, transparent);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 55px;
    backdrop-filter: blur(10px);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--main-text);
    margin: 0 0 8px 0;
}

.login-subtitle {
    font-size: 16px;
    color: var(--secondary-text);
    margin: 0;
    line-height: 1.5;
}

/* Login Form */
.login-form {
    margin-bottom: 24px;
}

.login-button {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.google-button {
    background: #fff;
    color: #333;
    border: 1px solid #dadce0;
}

.google-button:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.google-icon {
    width: 20px;
    height: 20px;
}

.email-button {
    background: var(--primary-accent);
    color: white;
}

.email-button:hover {
    background: var(--primary-accent-darker);
}

.create-button {
    background: transparent;
    color: var(--secondary-accent);
    border: 1px solid var(--secondary-accent);
}

.create-button:hover {
    background: var(--secondary-accent);
    color: white;
}

.login-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--bg-lighter);
    z-index: 1;
}

.login-divider span {
    background: var(--bg-main);
    padding: 0 10px;
    color: var(--secondary-text);
    font-size: 14px;
    z-index: 10;
    position: relative;
    border-radius: 10px;
    border: 1px solid var(--bg-lighter);
    padding-bottom: 2px;
}

/* Form Groups */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--main-text);
}

.form-group input {
    width: calc(100% - 34px);
    padding: 12px 16px;
    border: 1px solid var(--bg-lighter);
    border-radius: 8px;
    background: var(--bg-darker);
    color: var(--main-text);
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-accent);
}

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

/* Login Footer */
.login-footer {
    text-align: center;
}

.login-info {
    font-size: 12px;
    color: var(--secondary-text);
    line-height: 1.4;
    margin: 0;
}

/* Status Messages */
.status {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}

.status.success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status.error {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.status.warning {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(255, 152, 0, 0.3);
}

/* Verification Message */
.verification-message {
    padding: 40px;
    background: color-mix(in srgb, var(--bg-main) 95%, transparent);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
    animation: slideDown 0.4s ease-out;
}

.verification-message h3 {
    margin: 0 0 12px 0;
    color: var(--main-text);
    font-size: 18px;
}

.verification-message p {
    margin: 0 0 10px 0;
    color: var(--secondary-text);
    font-size: 13px;
}

.verification-message .login-button {
    margin: 8px;
    /* display: inline-block; */
    /* width: auto; */
    padding: 8px 16px;
    font-size: 12px;
}

.verification-message .login-button.secondary {
    background: transparent;
    color: var(--secondary-text);
    /* border: 1px solid var(--bg-lighter); */
}

.verification-message .login-button.secondary:hover {
    background: var(--bg-lighter);
    color: var(--main-text);
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 24px;
        margin: 10px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .login-subtitle {
        font-size: 14px;
    }
}

/* Recordings List Section */
#recordings-list-section {
    padding: 41px 0px 195px;
    max-width: 100%;
    margin: 0 auto;
}

#recordings-list-section h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ffffff;
    display: none;
}

#recordings-list-section #recordings-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Recording Card */
#recordings-list-section .recording-card {
    background: var(--bg-main);
    border-radius: 7px;
    padding: 11px 16px 13px 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    max-width: calc(646px - 33px);
    background-color: color-mix(in srgb, var(--bg-main) 85%, transparent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

#recordings-list-section .recording-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#recordings-list-section .recording-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-direction: row;
}
#recordings-list-section .recording-title:hover {
    border-color: transparent;
    background: transparent;
}

#recordings-list-section .recording-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--main-text);
    margin: 0;
    flex: 1;
    padding: 0px;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 24px;
    max-width: 100%;
    white-space: nowrap; /* keeps the text in a single line */
    font-weight: normal;
}

#recordings-list-section .play-button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--secondary-accent) 0%, var(--secondary-accent-darker) 100%);
    color: var(--main-text);
    /* height: 48px; */
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
    margin-top: 0px;
}

#recordings-list-section .play-button:hover {
    background: #5aa0f2;
}

#recordings-list-section .play-button .material-symbols-outlined {
    color: #ffffff;
    font-size: 16px;
}

#recordings-list-section .recording-date {
    font-size: 12px;
    color: var(--faded-grey);
    margin-bottom: 13px;
    margin-top: -6px;
    margin-left: 3px;
    margin=le: ;
}

#recordings-list-section .new-badge {
    color: #ff6b6b;
    font-weight: 500;
}

#recordings-list-section .recording-waveform {
    position: relative;
    width: calc(100% + 32px);
    height: auto;
    margin-bottom: 12px;
    overflow: hidden;
    display: block;
    padding: 0;
    margin: -4px 0 7px -16px;
    min-height: auto;
}

#recordings-list-section .waveform-image {
    width: auto;
    height: 24px;
    position: relative;
    margin: 0px;
}

#recordings-list-section .recording-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#recordings-list-section .recording-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    overflow: hidden;
    width: 1000px;
    max-height: 20px;
}

#recordings-list-section .tag-pill {
    padding: 4px 12px;
    border-radius: 16px;
    background: var(--bg-lighter);
    /* border: 1px solid var(--bg-main); */
    color: var(--secondary-text);
    font-size: 10px;
}

#recordings-list-section .recording-duration {
    font-size: 12px;
    color: var(--main-text);
    font-weight: 500;
    position: absolute;
    top: 43px;
    right: -6px;
    width: 72px;
    text-align: center;
}

#recordings-list-section .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
    font-size: 16px;
}

/* Desktop styles */
@media (min-width: 769px) {
    #recordings-list-section {
        padding: 40px;
        max-width: 1200px;
    }

    #recordings-list-section h1 {
        font-size: 32px;
        margin-bottom: 30px;
        display: none;
    }

    #recordings-list-section #recordings-grid {
        /* gap: 24px; */
        align-items: center;
    }

    #recordings-list-section .recording-card {
        /* padding: 24px; */
    }

    #recordings-list-section .recording-title {
    }

    #recordings-list-section .recording-waveform {
        /* height: 100px; */
    }
}

/* ========================================
   RECORDINGS LIST BOTTOM PLAYER STYLES
   ======================================== */

/* Recordings List Bottom Player */
.recordings-list-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    border-top: 1px solid var(--bg-main);
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background: var(--bg-darker);
}

.recordings-list-player.hidden {
    transform: translateY(100%);
}

/* All child elements scoped under .recordings-list-player .player-content */
.recordings-list-player .player-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
    background-color: transparent;
    backdrop-filter: blur(10px);
    padding: 12px 20px;
}

.recordings-list-player .player-content .player-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 250px;
}

.recordings-list-player .player-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
    position: absolute;
    top: 23px;
    width: calc(100% - 69px);
    height: calc(100% - 42px);
    max-width: 1300px;
    max-height: 45px;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 56%;
}

.recordings-list-player .player-content .player-info {
    overflow: hidden;
    z-index: 10;
}

.recordings-list-player .player-content .player-song-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--main-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--secondary-accent);
}

.recordings-list-player .player-content .player-song-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.recordings-list-player .player-content .player-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 600px;
}

.recordings-list-player .player-content .player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.recordings-list-player .player-content .player-control-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.recordings-list-player .player-content .player-control-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.recordings-list-player .player-content .player-play-btn {
    background-color: var(--primary-color);
    width: 40px;
    height: 40px;
}

.recordings-list-player .player-content .player-play-btn:hover {
    background-color: var(--primary-hover);
}

.recordings-list-player .player-content .player-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.recordings-list-player .player-content .player-time {
    font-size: 11px;
    color: var(--text-secondary);
    min-width: 35px;
    text-align: center;
}

.recordings-list-player .player-content .player-progress-bar {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

/* Filled track for webkit browsers (Chrome, Safari, Edge) */
.recordings-list-player .player-content .player-progress-bar::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, 
        var(--main-text) 0%, 
        var(--main-text) var(--progress-percent, 0%), 
        rgba(255, 255, 255, 0.2) var(--progress-percent, 0%), 
        rgba(255, 255, 255, 0.2) 100%);
}

/* Thumb for webkit browsers */
.recordings-list-player .player-content .player-progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    margin-top:-5px;
    border-radius: 50%;
    background: var(--main-text); /* was var(--main-text) */
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s;
}

.recordings-list-player .player-content .player-progress-bar::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Filled track for Firefox */
.recordings-list-player .player-content .player-progress-bar::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.recordings-list-player .player-content .player-progress-bar::-moz-range-progress {
    height: 4px;
    border-radius: 2px;
    background: var(--main-text);
}

/* Thumb for Firefox */
.recordings-list-player .player-content .player-progress-bar::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--main-text);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s;
}

.recordings-list-player .player-content .player-progress-bar::-moz-range-thumb:hover {
    transform: scale(1.2);
    border: none;
}

.recordings-list-player .player-content .player-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.recordings-list-player .player-content .player-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--accent-color);
    border: none;
    border-radius: 20px;
    color: var(--main-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.recordings-list-player .player-content .player-action-btn:hover {
    background-color: var(--accent-hover);
}

.recordings-list-player .player-content .player-action-btn .material-symbols-outlined {
    font-size: 24px;
}

.recordings-list-player .player-content .player-rec-btn-special {
    background: transparent;
    /* border: 2px solid var(--primary-accent); */
    color: var(--primary-accent);
}

.recordings-list-player .player-content .player-rec-btn-special:hover {
    background-color: rgba(255, 107, 107, 0.1);
}

.recordings-list-player .player-content .player-rec-btn-special .material-symbols-outlined {
    font-size: 18px;
    color: var(--primary-accent);
}

.recordings-list-player .player-content .player-rec-btn-special span:not(.material-symbols-outlined) {
    color: var(--primary-accent);
    font-weight: 600;
}

/* Toast Messages */
.toast-message {
    position: fixed;
    bottom: 100px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10001;
    pointer-events: none;
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background: var(--success-color);
}

.toast-error {
    background: var(--error-color);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .recordings-list-player {
        /* padding: 15px 12px 12px; */
        /* border-radius: 14px 20px 0px 0px; */
        /* margin: 0px 1px 0px; */
        background: none;
        box-shadow: none;
        border: none;
        /* overflow: hidden; */
    }
    .recordings-list-player .player-content .player-song-meta {
        display:none;
    }
    .recordings-list-player .player-thumbnail {
        height: calc(100% - 23px);
        position: absolute;
        top: 14px;
        left: 0;
        width: calc(100% - 24px);
        object-fit: fill;
        margin: 0px 12px;
        border-radius: 10px;
        transform: none;
        max-height: 75%;
        height: 123px;
        display: none !important;
    }
    .recordings-list-player .player-content .player-song-title {
        font-size: 20px;
        text-align: center;
        color: var(--main-text);
        font-weight: normal;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        white-space: nowrap;
        /* text-shadow: -1px -1px 5px black; */
        margin-bottom: 8px;
    }
    
    .recordings-list-player .player-content {
        flex-direction: column;
        gap: 0;
        padding: 16px 10px 10px;
        border-radius: 0;
        border: 1px solid rgb(28 28 30 / 49%);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        background: color-mix(in srgb, var(--bg-main) 6%, transparent);
        margin: 0;
        backdrop-filter: blur(24px);
    }
    
    .recordings-list-player .player-content .player-left {
        width: 100%;
        flex: none;
    }
    
    .recordings-list-player .player-content .player-center {
        width: 100%;
        max-width: none;
    }
    
    .recordings-list-player .player-content .player-right {
        width: 100%;
        justify-content: center;
        padding-top: 9px;
    }
    
    .recordings-list-player .player-content .player-action-btn {
        flex: 1;
        justify-content: center;
        position: absolute;
        top: 44px;
        left: 50%;
        display: flex;
        flex-direction: column;
        border-radius: 50%;
        height: 50px;
        width: 50px;
        transform: translate(-50%, 0%);
        margin-left: 101px;
        padding-top: 14px;
        color: var(--warning-color);
    }
    .recordings-list-player .player-content .player-rec-btn-special {
        transform: translate(-50%, -50%);
        top: -78px;
        left: 50%;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        background: linear-gradient(135deg, var(--primary-accent) 0%, var(--primary-accent-darker) 100%);
        backdrop-filter: blur(10px);
        margin-left: 0;
        width: 70px;
        height: 70px;
        box-shadow: 0 4px 16px rgb(112 6 15 / 30%);
    }
    .recordings-list-player .player-content .player-add-note-btn {
        right:10px;
    }
    .recordings-list-player .player-content .player-rec-btn-special .material-symbols-outlined {
        font-size: 30px;
        color: var(--main-text);
    }
    .player-action-btn-text{
        display: none;
    }
}

/* ============================================
   Analysis Options Styling
   ============================================ */
.analysis-options {
    margin-top: -1px;
    padding-top: 3px;
    border-top: none;
    text-align: left;
}

.analysis-options-title {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--main-text);
}

.analysis-option-label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
}

.analysis-option-label input[type="checkbox"] {
    margin: 0 4px 4px 0;
    cursor: pointer;
}

.manual-inputs {
    background: var(--background-secondary, #f5f5f5);
    padding: 12px;
    border-radius: 4px;
    margin-left: 24px;
    margin-bottom: 12px;
    align-items: center;
}

.manual-input-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.manual-input-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.manual-input-label span {
    color: var(--secondary-text, #666);
}

.manual-input-label input[type="number"] {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.time-sig-divider {
    font-weight: 600;
    color: var(--main-text, #333);
}