/* Reset e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Container Principal */
.login-container,
.deadlines-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Cabeçalho */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #4a6fa5;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0px 1px 5px 5px rgba(0,0,0,0.35);
        -webkit-box-shadow: 0px 3px 10px 5px rgba(0,0,0,0.35);
        -moz-box-shadow: 0px 3px 10px 5px rgba(0,0,0,0.35);
}

header h1 {
    font-size: 1.8rem;
}

strong {
    color: #3a5a80;
    text-shadow:
        -1px -1px 0 #8fa6ca,
        1px -1px 0 #8fa6ca,
        -1px 1px 0 #8fa6ca,
        1px 1px 0 #8fa6ca;
}

/* Formulários */
form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

input,
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #4a6fa5;
}

button {
    background-color: #4a6fa5;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #3a5a80;
}

/* Página de Login */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.login-container h1 {
    font-weight: 800;
    margin-bottom: 30px;
    color: #4a6fa5;
}

.login-container form {
    width: 100%;
    max-width: 400px;
}

#signupLink {
    color: #4a6fa5;
    text-decoration: none;
}

#signupLink:hover {
    text-decoration: underline;
}

/* Controles */
.controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 20px;
}

.controls select {
    width: auto;
    min-width: 200px;
    margin-left: 10px;
}

/* Lista de Prazos */
.deadline {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.deadline:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.deadline h3 {
    color: #4a6fa5;
    margin-bottom: 10px;
}

.deadline .meta {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

.deadline .actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.deadline .actions button {
    padding: 5px 10px;
    font-size: 0.9rem;
}

.deadline .actions .edit {
    background-color: #f0ad4e;
}

.deadline .actions .edit:hover {
    background-color: #ec971f;
}

.deadline .actions .delete {
    background-color: #d9534f;
}

.deadline .actions .delete:hover {
    background-color: #c9302c;
}

.actions .complete {
    background-color: #5cb85c;
}

.actions .complete:hover {
    background-color: #4cae4c;
}

/* Link de concluídos */
.completed-link,
.back-link {
    color: white;
    text-decoration: none;
    margin-right: 15px;
    padding: 8px 12px;
    background-color: #5cb85c;
    border-radius: 4px;
}

.completed-link:hover,
.back-link:hover {
    background-color: #4cae4c;
}

/* Prazo concluído */
.deadline.completed {
    opacity: 0.8;
    border-left: 5px solid #5cb85c;
}

.deadline.completed h3 {
    color: #5cb85c;
}

#completedList {
    padding: 20px;
    min-height: 100px;
    margin: 20px 0;
}

/* Prioridades */
.priority-high {
    border-left: 5px solid #d9534f;
}

.priority-medium {
    border-left: 5px solid #f0ad4e;
}

.priority-low {
    border-left: 5px solid #5cb85c;
}

.no-deadlines {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    position: relative;
    text-align: center;
}

.modal-content .close {
    position: absolute;
    right: 10px;
    top: 5px;
    cursor: pointer;
    font-size: 18px;
}

#modalButtons button {
    margin: 10px;
}


.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 1.5rem;
    cursor: pointer;
}

#registerModal .modal-content {
    max-width: 400px;
}

#registerForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
}

.modal-footer a {
    color: #4a6fa5;
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

.message {
    font-weight: bold;
}

.yes,
.no {
    margin: 25px 30px 0 0;
    padding: 10px 30px;
}

/* Responsividade */
@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        gap: 10px;
    }

    .controls select {
        width: 100%;
        margin-left: 0;
    }

    .deadline .meta {
        flex-direction: column;
        gap: 5px;
    }

    .completed-link,
    .back-link {
        margin-right: 0;
        padding: 5px 10px;
    }

    .modal-content {
        margin: 25% auto;
    }
}

@media (max-width: 400px) {
    #logoutBtn {
        margin-top: 10px;
    }
}