/* Base styles */
html {
    min-height: 100%;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100%;
    background: #061d33;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    margin: 0;
}

.no-js-message {
    color: white;
    position: absolute;
    width: 100%;
    padding: 50px;
    background: #000000e0;
    border-radius: 10px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

/* Flex container */
.flex-container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Page title */
.page-title {
    padding: 50px 0;
    font-weight: bold;
}

.page-title h1 {
    color: #fff;
    text-transform: uppercase;
    font-weight: 800;
    margin: 0;
    font-family: 'Adamina', 'Georgia', serif;
    letter-spacing: 5px;
    font-size: 30px;
}

/* App container */
.todo-app {
    margin-bottom: 40px;
}

.app-container {
    max-width: 500px;
    margin: 0 auto;
    background: #ffffff;
    text-align: center;
    padding: 35px 25px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    position: relative;
}

/* To-Do tracker */
.todo-tracker {
    text-align: left;
}

/* Form */
.todo-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.todo-form .form-group {
	display: flex;
    flex-direction: row;
	flex-wrap: wrap;
	flex: 1 1 0;
    gap: 8px;
	min-width: 280px;
}


.todo-form .form-group .input-group {
	display: flex;
	flex: 1 1 auto; 
    gap: 8px;
}

.todo-form  input[type="text"] {
    flex: 2 1 140px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border 0.2s ease;
    min-width: 140px;
}

.todo-form  input[type="text"]:focus {
    border-color: #061d33;
}

.todo-form  select {
    flex: 1;
    padding: 10px 26px 10px 12px; /* extra right padding */
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #061d33;
    outline: none;
    cursor: pointer;
    transition: border 0.2s ease, background 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="gray"><polygon points="0,0 12,0 6,6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.todo-form  select:focus {
    border-color: #061d33;
}


.todo-form button[type="submit"] {
	background: #061d33;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.todo-form  button[type="submit"]:hover {
    background: #0c2c4d;
}

/* To-Do List */
.todo-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.todo-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5f5f5;
    margin-bottom: 10px;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #eee;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.todo-list li:hover {
    background: #f0f0f0;
}

.todo-list li.completed {
    background: #d4f7dc;
}

.todo-list li.completed .todo-text {
    text-decoration: line-through;
    opacity: 0.7;
}

/* Main text */
.todo-text {
    flex: 1;
    word-break: break-word;
}

/* Delete button */
.todo-list button.delete-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-left: 10px;
}

.todo-list button.delete-btn:hover {
    color: #d9534f;
}

/* Badges */
.todo-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 15px;
    margin-left: 8px;
    background: #ffffff;
    color: #061d33;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgb(0 0 0 / 12%);
}

/* Category badges */
.todo-badge.category.General { background: #6c757d; color: #fff; }
.todo-badge.category.Music { background: #6610f2; color: #fff; }
.todo-badge.category.Work { background: #007bff; color: #fff; }
.todo-badge.category.Personal { background: #28a745; color: #fff; }

/* Priority badges */
.todo-badge.priority.Low { background: #17a2b8; color: #fff; }
.todo-badge.priority.Medium { background: #ffc107; color: #000; } /* black text on yellow */
.todo-badge.priority.High { background: #dc3545; color: #fff; }

/* Badge hover effect */
.todo-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

/* Priority border accent */
li.priority-high { border-left: 4px solid #dc3545; }
li.priority-medium { border-left: 4px solid #ffc107; }
li.priority-low { border-left: 4px solid #17a2b8; }

/* Clear list button */
.clear-list {
	display: none;
    margin-top: 45px;
    text-align: center;
}

.clear-list button {
    background: #d9534f;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.clear-list button:hover {
    background: #b52e2b;
}


.note {
	display: none;
	text-align: left;
	background: #f0f0f0;
	padding: 15px 20px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.5;
	color: #555555c7;
}

.note p {
  font-weight: 500;
}

/* Share section */
.share-tool-section {
    text-align: center;
}

.share-tool-section .social-share-buttons {
    padding: 10px 20px;
}

.share-tool-section .social-share-buttons a {
    color: #ffffffaa;
    padding: 8px;
    text-decoration: none;
}

.share-tool-section .social-share-buttons a i {
    border: 1px solid #ffffff33;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.share-tool-section .social-share-buttons a:hover i {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    padding: 15px 20px;
    color: #ffffff6e;
    font-family: sans-serif;
    text-align: center;
    font-size: 15px;
    letter-spacing: .2px;
}

footer a {
    color: #ff9901;
    text-decoration: none;
}

footer .made-by {
    color: white;
}

footer .footer-copyright {
    font-size: 14px;
    line-height: 1.4;
    font-weight: lighter;
}


@media (max-width: 500px) {
    .todo-form button[type="submit"] {
		flex: 1;
	}
}
