:root {
    --primary-color: #2898b7;
    --secondary-color: #fbbf24;
    /* Gold */
    --bg-color: #f3f4f6;
    --text-color: #1f2937;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
    overscroll-behavior-y: none;
}

/* Utilities */
.active {
    display: flex !important;
}

.hidden {
    display: none !important;
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgb(6, 103, 188), #afeaf0);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    transition: opacity 0.5s ease;
}

.splash-logo {
    width: 150px;
    animation: rotarLogo 4s;
    border-radius: 10%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    zoom: 1.75;
}

@keyframes rotarLogo {
    0% {
        transform: rotate(0deg);
        border-radius: 10% 20%;
    }

    40% {
        transform: rotate(360deg);
        border-radius: 50% 50%;
    }

    80% {
        transform: rotate(0deg);
        border-radius: 50% 50%;
    }

    100% {
        transform: scale(4.3);
    }

}

/* Login & Forms */
.screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container,
.form-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    width: 100px;
    margin-bottom: 1rem;
}

.input-group {
    margin-bottom: 1rem;
    position: relative;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: var(--primary-color);
}

.password-group {
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    opacity: 0.6;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #1e40af;
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    background-color: #9ca3af;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
}

.login-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
}

/* === HOME SCREEN === */
.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    max-width: 400px;
    margin: 0 auto;
    min-height: 100vh;
}

#home-coro-name {
    position: absolute;
    font-family: Century Gothic;
    top: 35px;
    left: 35%;
}

.home-logo {
    width: 85px;
    height: 85px;
    margin-bottom: 17px;
    position: absolute;
    top: 20px;
    left: 30px;
}

#home-user-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-align: center;
}

.home-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 25px;
    font-size: 1.1rem;
    font-weight: 500;
    background: rgb(244, 244, 255);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-btn:active {
    transform: scale(0.98);
}

.menu-btn:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.menu-btn span {
    font-size: 1.5rem;
    min-width: 30px;
    text-align: center;
}

.menu-btn-logout {
    margin-top: 20px;
    background: #fee2e2;
    border-color: #ef4444;
    color: #ef4444;
}

.menu-btn-logout:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* === APP SCREEN === */
#app-screen {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
}

.app-header {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    padding-top: max(15px, env(safe-area-inset-top));
    display: flex;
    width: 95%;
    align-items: center;
    box-shadow: var(--shadow);
    border-radius: 6px;
    flex-shrink: 0;
}

#main-content {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding-bottom: 80px;
    padding-top: 10px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.8rem;
}

.nav-item span {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.nav-item.active {
    color: var(--primary-color);
}

/* Cards */
.card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;

}

.card:active {
    transform: scale(0.98);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.card p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.file-list {
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    background: #f9fafb;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
}

.file-item span {
    margin-right: 10px;
}

/* Toast */
#toast-container {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    pointer-events: none;
}

.toast {
    background: rgba(38, 145, 216, 0.8);
    color: rgb(242, 241, 237);
    border: solid 1pt #000;
    padding: 15px 25px;
    border-radius: 25px;
    margin-bottom: 10px;
    animation: fadeInOut 5s forwards;
    pointer-events: auto;
    cursor: pointer;
    text-align: center;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    90% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Messages */
.message-tabs {
    display: flex;
    margin-bottom: 15px;
    background: white;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 3px;
    border-radius: 5px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 10px;
    resize: vertical;
    min-height: 100px;
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* Emoji Buttons */
.emoji-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.emoji-btn:hover {
    background: #e5e7eb;
    transform: scale(1.1);
}

.emoji-btn:active {
    transform: scale(0.95);
}

/* Muro Styles */
.color-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-circle:hover {
    transform: scale(1.1);
}

.muro-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}