/* Container principal */
.password-sharer-container {
    background: linear-gradient(180deg, #E8F4F8 0%, #FFFFFF 100%);
    min-height: calc(100vh - 200px);
    padding: 60px 0;
}

/* Cacher la page pendant le chargement */
body.page-loading {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

body {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Titre principal */
.main-title {
    color: #233064;
    font-size: 2.5rem;
}

/* Cartes */
.custom-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Carre noir pour l'affichage du mot de passe */
#black_square {
    background-color: black;
    width: 300px;
    height: 200px;
    border-radius: 8px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Texte du mot de passe */
#password {
    color: #233064;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-family: monospace;
    font-size: 2rem;
    width: 90%;
    text-align: center;
    word-break: break-all;
    overflow-y: auto;
    max-height: 180px;
}

/* Titres de carte */
.card-title-custom {
    color: #233064;
    font-weight: 600;
}

/* Zone de texte mot de passe */
#passwordInput {
    background-color: #D9D9D9;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 1rem;
}

/* Labels */
.form-label-custom {
    color: #233064;
    font-weight: 500;
}

/* Slider */
#range1 {
    accent-color: #233064;
}

.slider-output {
    min-width: 50px;
    text-align: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    background-color: #233064;
    padding: 8px 12px;
    border-radius: 8px;
}

/* Séparateur */
.custom-hr {
    border-color: #D9D9D9;
}

/* Input date/heure */
#datetimeInput {
    background-color: #D9D9D9;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 1rem;
}

/* Input cle d'acces */
#accessKeyInput {
    background-color: #D9D9D9;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 1rem;
}

/* Bouton publier */
#publishButton {
    background-color: #233064;
    border: none;
    border-radius: 8px;
    padding: 15px 60px;
    font-size: 1.1rem;
    font-weight: 500;
}

#publishButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#publishButton:not(:disabled) {
    opacity: 1;
    cursor: pointer;
}

#publishButton:not(:disabled):hover {
    background-color: #1a2550;
}

/* Overlay cle d'acces */
.access-key-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(35, 48, 100, 0.85);
    z-index: 9999;
}

.access-key-overlay.is-active {
    display: flex;
}

.access-key-panel {
    width: min(420px, 90vw);
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    padding: 24px;
    text-align: center;
}

.access-key-title {
    color: #233064;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.access-key-subtitle {
    color: #233064;
    margin-bottom: 16px;
}

.access-key-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.access-key-form .form-control {
    background-color: #D9D9D9;
    border: none;
    border-radius: 8px;
    padding: 12px;
}
