body {
    background-color: #15192a;
    color: #f7f9fc;
}

.top-bar {
    background-color: #1f263c;
    border-bottom: 1px dashed #2c3e50 !important;
    height: 60px;
}

.sidebar {
    width: 250px;
    background-color: #1f263c;
    height: calc(100vh - 60px);
}

.sidebar .nav-item {
    border-bottom: 2px dashed #1b2135;
}

.sidebar .nav-item:hover {
    background-color: #192846;
    color: #ffffff;
    border: 2px dashed #2c3e50;
}

.sidebar .nav-link {
    color: #8f9bb3;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 4px;
}

.sidebar .nav-link i {
    margin-right: 10px;
}

.main-content {
    flex-grow: 1;
    background-color: #141a32;
    height: calc(100vh - 60px);
}

.content-box {
    background-color: #1f2a48;
    border: 1px dashed #334680;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
    margin: auto;
}

.btn-primary {
    background-color: #44577b;
    border-color: #5b6f8e;
    width: 100%;
    padding: 12px;
    font-size: 1.125rem;
    text-align: center;
}

.btn-primary:hover {
    background-color: #748b9e;
    border-color: #8b9dbe;
}

.form-control {
    background-color: transparent;
    border: 0px solid transparent;
    border-bottom: 1px groove #d3d3d3;
    color: #ffffff;
}

.form-control:focus {
    background-color: transparent;
    border-color: #d3d3d3;
    box-shadow: none;
}

select.form-control {
    background-color: #1f2a48;
    border: 1px solid #334680;
    color: #ffffff;
}

select.form-control option {
    background-color: #1f2a48;
    color: #ffffff;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control:focus {
    background-color: transparent;
    border: 0px solid transparent;
    border-bottom: 1px groove #d3d3d3;
    color: #ffffff;
    box-shadow: none;
}

.is-invalid .form-control {
    border-color: #d3d3d3;
    background-color: transparent;
}

/* Voiceover Styles */
.voiceover-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: auto;
}

.voiceover-card {
    background-color: #1f2a48;
    border: 1px solid #334680;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    height: 100%;
}

.voiceover-card h3 {
    color: #f7f9fc;
    font-weight: 600;
    border-bottom: 2px solid #334680;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.voiceover-card h5 {
    color: #8f9bb3;
    font-weight: 600;
    margin-bottom: 20px;
}

.voiceover-card h5 i {
    margin-right: 8px;
    color: #44577b;
}

.voiceover-card textarea {
    background-color: #141a32;
    border: 1px solid #334680;
    color: #ffffff;
    resize: vertical;
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    padding: 12px;
}

.voiceover-card textarea:focus {
    background-color: #1a2140;
    border-color: #44577b;
    box-shadow: 0 0 5px rgba(68, 87, 123, 0.5);
}

.audio-player-container {
    background-color: #141a32 !important;
    border: 1px solid #334680;
}

.audio-player-container .d-flex {
    gap: 15px;
}

/* Fallback para navegadores sem suporte a gap */
.audio-player-container .d-flex > * + * {
    margin-left: 15px;
}

.audio-player-container .audio-player {
    background-color: #ffffff;
    border-radius: 5px;
    outline: none;
    height: 40px;
}

.audio-player-container audio::-webkit-media-controls-panel {
    background-color: #ffffff;
}

.audio-player-container .btn-success {
    white-space: nowrap;
    padding: 0.5rem 1.5rem;
    height: 40px;
}

#charCounter {
    color: #8f9bb3;
    font-weight: 500;
}

/* Custom Checkbox Styles */
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #44577b;
    border-color: #44577b;
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(68, 87, 123, 0.25);
}

.custom-control-label {
    color: #f7f9fc;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.custom-control-label::before {
    background-color: #141a32;
    border: 2px solid #334680;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e");
}

.btn-secondary {
    background-color: #334680;
    border-color: #44577b;
}

.btn-secondary:hover {
    background-color: #44577b;
    border-color: #5b6f8e;
}

.btn-success {
    background-color: #2d8659;
    border-color: #3a9d6d;
}

.btn-success:hover {
    background-color: #3a9d6d;
    border-color: #47b481;
}
