/* Color Palette */
:root {
    --dark-blue: #222831;
    --dark-gray: #393E46;
    --teal: #00ADB5;
    --light-gray: #EEEEEE;
    --yellow: #FFD369;
    --danger: #ff6b6b;
    --success: #51cf66;
    --warning: #fcc419;
    --expired: rgba(255, 107, 107, 0.1);
    --shadow: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-blue);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

/* Typography */
h1, h2, h3 {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.subtitle {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 3px solid var(--teal);
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Form Section */
.form-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow);
}

.care-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

label {
    font-weight: 600;
    color: var(--dark-gray);
}

input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 2px rgba(0, 173, 181, 0.2);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Schedule Section */
.schedule-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow);
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.schedule-list-container {
    min-height: 200px;
}

.schedule-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-item {
    padding: 1rem;
    border-radius: 6px;
    background-color: var(--light-gray);
    box-shadow: 0 2px 4px var(--shadow);
    transition: transform 0.2s;
}

.schedule-item:hover {
    transform: translateY(-2px);
}

.schedule-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.schedule-item__name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark-blue);
}

.schedule-item__period {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.schedule-item__status {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.schedule-item__status--active {
    background-color: rgba(81, 207, 102, 0.1);
    color: var(--success);
}

.schedule-item__status--expired {
    background-color: rgba(255, 107, 107, 0.1);
    color: var(--danger);
}

.schedule-item--expired {
    background-color: var(--expired);
    border-left: 4px solid var(--danger);
}

.schedule-item__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.empty-message {
    text-align: center;
    color: var(--dark-gray);
    padding: 2rem 0;
    font-style: italic;
}

/* Notification */
.notification {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

.notification--success {
    background-color: rgba(81, 207, 102, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.notification--error {
    background-color: rgba(255, 107, 107, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.notification--warning {
    background-color: rgba(252, 196, 25, 0.1);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.hidden {
    display: none;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--teal);
    color: white;
}

.btn-primary:hover {
    background-color: #008f96;
}

.btn-secondary {
    background-color: var(--light-gray);
    color: var(--dark-gray);
}

.btn-secondary:hover {
    background-color: #ddd;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: #ff5252;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: var(--dark-blue);
    color: var(--light-gray);
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

.footer a {
    color: var(--yellow);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (min-width: 768px) {
    .main-content {
        grid-template-columns: 1fr 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .schedule-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .schedule-header h2 {
        margin-bottom: 0.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
