body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.app-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    box-sizing: border-box;
}

.hide-element {
    display: none !important;
}

.user-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
    font-weight: bold;
}

.logout-btn {
    background: #888;
    padding: 4px 8px;
    font-size: 11px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.logout-btn:hover {
    background: #555;
}

.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 10px 5px;
    border: none;
    background: #e0e0e0;
    cursor: pointer;
    font-weight: bold;
    border-radius: 8px;
    transition: 0.3s;
    font-size: 12px;
}

.tab-btn.active {
    background: #23a6d5;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

form, .auth-form, .share-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.todo-date-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 5px 0;
    width: 100%;
}

.todo-date-row #deadline-input-container {
    flex: 1;
}

.checkbox-container {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.auth-card {
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-toggle-text {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
}

.auth-toggle-text a {
    color: #23a6d5;
    text-decoration: none;
    font-weight: bold;
}

.auth-toggle-text a:hover {
    text-decoration: underline;
}

.auth-error-message {
    color: red;
    font-size: 13px;
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}

.share-info {
    font-size: 14px;
    color: #555;
}

.copy-input-group {
    display: flex;
    gap: 8px;
    width: 100%;
}

.copy-input-group input {
    flex: 1;
}

#copy-id-btn {
    width: auto;
    background: #23a6d5;
    padding: 0 15px;
    white-space: nowrap;
}

#copy-id-btn:hover {
    background: #1b8cb5;
}

.share-box-spacing {
    margin-top: 20px;
}

.connect-btn {
    margin-top: 10px;
    background: #23a6d5;
}

.share-status-message {
    font-size: 13px;
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
}

input, select, button {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    width: 100%;
}

button {
    background: #23d5ab;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #1cb893;
}

.list {
    list-style: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.list li {
    background: #f9f9f9;
    padding: 12px;
    border-left: 5px solid #23a6d5;
    margin-bottom: 8px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list li.checked {
    text-decoration: line-through;
    opacity: 0.6;
    border-left-color: #888;
}

.list-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.status-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
    width: auto;
}

.delete-btn {
    background: #ff4d4d;
    padding: 5px 10px;
    font-size: 12px;
    width: auto;
    color: white;
    border-radius: 4px;
}

.delete-btn:hover {
    background: #cc0000;
}

.deadline-text {
    font-size: 11px;
    color: #666;
    display: block;
    margin-top: 4px;
}