*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    min-height: 100vh;
}
/* Navbar style */
.navbar {
    background-color: #34495e;
    padding: 0 20px;
    position: sticky;
    overflow: hidden;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
}

.logout-form {
    display: inline;
    margin: 0;
}

.logout-btn{
    background: none;
    border: none;
    color: #ecf0f1;
    cursor: pointer;
    padding: 8px 16px;
    font: inherit;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.logout-btn:hover{
    background-color: rgba(231, 76, 60, 0.2);
}

.login-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    background-color: #3498db;
}

.signup-link {
    background-color: #27ae60;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
}

/* form style */
form {
    width: 100vh;
}

form p {
    margin-bottom: 20px;
    position: relative;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form textarea,
form select {
    width: 50%;
    padding: 14px 16px;
    border: 2px solid #e8ebed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

/* Tasks styles*/
.main-content {
    min-height: calc(100vh - 60px);
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.user-welcome {
    color: #bdc3c7;
    font-size: 0.9rem;
    margin-right: 10px;
}

.create-task-btn {
    display: inline-block;
    background-color: #27ae60;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    margin-bottom: 30px;
}

.filters-section{
    display: flex;
    flex-wrap: wrap;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.show-completed {
    margin: 15px 0;
}

.form-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.tasks-section{
    overflow: hidden;
}

table{
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

table thead {
    background-color: #34495e;
    color: white;
    
}

table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

table td {
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.task-title-link {
    text-decoration: none;
    color: blue;
}

.edit-link {
    background-color: #3498db;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 5px;
    color: white;
}

.delete-link {
    background-color: rgba(255, 0, 0, 0.822);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 5px;
    color: white;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    text-align: center;
    min-width: 120px;
}

.back-btn {
    background-color: #95a5a6;
    text-decoration: none;
    border-radius: 5px;
    color: white;
}

.action-links {
    display: flex;
    gap: 5px;
    min-width: 100px; 
    justify-content: flex-start;
    align-items: center;
}

@media (max-width: 586px){
    .tasks-section{
        overflow-x: auto;
    }

    .action-links{
        gap: 3px;
        flex-wrap: wrap;
        min-width: 80px;
    }
    
    .edit-link,
    .delete-link {
        padding: 3px 6px;
        font-size: 12px;
    }
}