body {
    background-color: #121212;
    color: white;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 40px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

header {
    margin-bottom: 40px;
}

.task-card {
    background-color: #252525;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid #353535;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    min-height: 130px;
    gap: 15px;
    position: relative;
    align-items: start;
}

.task-card:hover {
    transform: translateY(-3px);
    background-color: #303030;
}

.task-card h2 {
    margin-top: 0;
    font-size: 20px;
    grid-column: auto;
    grid-row: auto;
    text-align: left;
    align-self: auto;
    margin: 0;
}

.task-card p {
    color: #b0b0b0;
    margin-bottom: 0;
}

.task-input {
    background-color: #252525;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #353535;
    margin-bottom: 30px;
}

.task-input input {
    width: 100%;
    padding: 12px;
    background-color: #181818;
    color: white;
    border: 1px solid #454545;
    border-radius: 6px;
    box-sizing: border-box;
}

.task-input button {
    margin-top: 12px;
    padding: 10px 18px;
    background-color: #3478f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.task-input button:hover {
    background-color: #4b89ff;
}

.task-card.completed h2 {
    text-decoration: line-through;
    opacity: 0.6;
}

.task-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-start;
}

.task-header {
    display: flex;
    align-items: center;
    gap: 12px;

}

.task-progress {
    font-size: 14px;
    color: #4b89ff;
    font-weight: bold;
}

.subtask-list {
    margin-top: 15px;
}

.task-main {
    grid-column: 1;
    grid-row: 1;
}

.task-delete {
    background-color: transparent;
    color: #ff4b4b;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.task-add-subtask {
    background-color: transparent;
    color: #4caf50;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.subtask {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.subtask.completed span {
    text-decoration: line-through;
    opacity: 0.5;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content input {
    width: 100%;
    padding: 14px;
    box-sizing: border-box;
    background-color: #181818;
    color: white;
    border: 1px solid #454545;
    border-radius: 8px;
    font-size: 16px;
    margin-top: 5px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    background-color: transparent;
    color: white;
    transition: 0.2s;
    box-shadow: none;
}

.modal-buttons button {
    padding: 10px 16px;
    border: 1px solid #454545;
    border-radius: 7px;
    cursor: pointer;
    font-size: 14px;
    color: white;
    background-color: #353535;
    transition: 0.2s;
}

.modal-buttons button:hover {
    background-color: #454545;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
}

.modal-content {
    background-color: #252525;
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #454545;
    width: 700px;
    max-width: 90%;
    box-sizing: border-box;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}


#confirm-subtask {
    background-color: #286b3a;
    border-color: #347c49;
}

#confirm-subtask:hover {
    background-color: #347c49;
}

.auth-page {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;
}

.auth-intro {
    text-align: center;
}

.auth-intro h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.auth-intro p {
    color: #b0b0b0;
}

.auth-card {
    background-color: #252525;
    border: 1px solid #353535;
    border-radius: 14px;
    padding: 30px;
    width: 400px;
    max-width: calc(100vw - 100px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.auth.tabs button {
    flex: 1;
    padding: 12px;
    background-color: #181818;
    color: #b0b0b0;
    border: 1px solid #353535;
    border-radius: 7px;
    cursor: pointer;
}

.auth-tabs button.active {
    background-color: #3478f6;
    color: white;
    border-color: #3478f6;
}

.auth-card h2 {
    margin-bottom: 8px;
}

.auth-card p {
    color: #b0b0b0;
    margin-bottom: 25px;
}

.auth-card label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.auth-card input {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    background-color: #181818;
    color: white;
    border: 1px solid #454545;
    border-radius: 7px;
    margin-bottom: 20px;
}

.auth-submit {
    width: 150px;
    padding: 10px;
    background-color: #3478f6;
    color: white;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: 0.2s;
}

.auth-submit:hover {
    background-color: #4b89ff;
}

.auth-error {
    color: #ff4b4b !important;
    margin-top: 15px;
}

.auth-success {
    color: #4caf50 !important;
    margin-top: 15px;
}

.dashboard-header {
    position: relative;
}

.logout-button {
    display: inline-block;
    padding: 12px 22px;

    background-color: #d93636;
    color: white;

    border: none;
    border-radius: 8px;

    text-decoration: none;
    font-weight: bold;

    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.logout-button:hover {
    background-color: #b82b2b;
    transform: scale(1.05);
}

.header-actions {
    position: absolute;
    top: 0;
    right: 0;

    display: flex;
    align-items: center;
    gap: 15px;
}

.user-email {
    color: #aaaaaa;
    font-size: 14px;
}

#description-input {
    width: 100%;
    min-height: 350px;
    resize: vertical;
    box-sizing: border-box;

    padding: 15px;
    font-size: 16px;
    line-height: 1.5;
}

