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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1000px;
    margin: 0 auto;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    text-align: center;
    border-bottom: 3px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 2.5rem;
    color: #667eea;
    font-weight: 700;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
}

.button-container {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #667eea;
    color: white;
}

.btn-primary:hover {
    background-color: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-edit {
    background-color: #48bb78;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-edit:hover {
    background-color: #38a169;
    transform: translateY(-1px);
}

.btn-delete {
    background-color: #f56565;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-delete:hover {
    background-color: #e53e3e;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #cbd5e0;
    color: #2d3748;
}

.btn-secondary:hover {
    background-color: #a0aec0;
    transform: translateY(-2px);
}

/* Reminder List */
.reminder-list {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.reminder-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.reminder-card:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.reminder-content {
    flex: 1;
    margin-right: 2rem;
}

.reminder-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.reminder-time {
    font-size: 0.9rem;
    color: #718096;
    display: flex;
    align-items: center;
}

.reminder-time::before {
    content: "📅 ";
    margin-right: 0.5rem;
}

.reminder-actions {
    display: flex;
    gap: 0.75rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    color: #718096;
    font-size: 1.1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #000;
}

.modal h2 {
    margin-bottom: 1.5rem;
    color: #2d3748;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.form-actions .btn {
    flex: 0 1 auto;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    text-align: center;
    color: #718096;
    border-top: 1px solid #e2e8f0;
}

.footer p {
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .main-content {
        padding: 1rem;
    }

    .reminder-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .reminder-content {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 100%;
    }

    .reminder-actions {
        width: 100%;
        justify-content: space-between;
    }

    .reminder-actions .btn {
        flex: 1;
    }

    .button-container {
        margin-bottom: 1.5rem;
    }

    .button-container .btn {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
    }
}
