/* Estilos Elegantes para o Sistema de Lembretes de Medicamentos - Para a Fran */
.med-reminder-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 800px;
    margin: 30px auto;
    padding: 40px;
    background: linear-gradient(135deg, #f9f7ff 0%, #f0f8ff 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e6f0ff;
    position: relative;
    overflow: hidden;
}

.med-reminder-container::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="rgba(106, 140, 255, 0.05)" d="M20,20 Q40,5 60,20 T100,20 Q85,40 100,60 T100,100 Q60,85 20,100 T0,100 Q5,60 0,20 T20,20Z"/></svg>');
    background-size: contain;
    opacity: 0.7;
    z-index: 0;
}

.add-med-form {
    background: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: none;
    position: relative;
    z-index: 1;
}

.add-med-form h3 {
    margin-top: 0;
    color: #4a5baf;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-med-form h3::before {
    content: "💊";
    font-size: 28px;
}

.add-med-form input {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: #fafbff;
}

.add-med-form input:focus {
    border-color: #6a8cff;
    box-shadow: 0 0 0 3px rgba(106, 140, 255, 0.2);
    outline: none;
    background: white;
}

.add-med-form button {
    background: linear-gradient(90deg, #6a8cff, #a18dff);
    color: white;
    border: none;
    padding: 16px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 4px 10px rgba(106, 140, 255, 0.3);
}

.add-med-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(106, 140, 255, 0.4);
}

.add-med-form button:disabled {
    background: #b0b0b0;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.form-feedback {
    margin-top: 15px;
    padding: 15px;
    border-radius: 10px;
    display: none;
    text-align: center;
    font-size: 15px;
}

.form-feedback.success {
    background: #e6fff2;
    color: #00a651;
    border: 1px solid #b3ffd9;
    display: block;
}

.form-feedback.error {
    background: #ffebee;
    color: #ff3d57;
    border: 1px solid #ffc5cb;
    display: block;
}

.upcoming-meds, .full-schedule {
    background: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: none;
    position: relative;
    z-index: 1;
}

.upcoming-meds h3, .full-schedule h3 {
    margin-top: 0;
    color: #ff6b9d;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upcoming-meds h3::before {
    content: "⏰";
    font-size: 28px;
}

.full-schedule h3::before {
    content: "📋";
    font-size: 28px;
}

.med-card {
    background: #fff5f7;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #ff6b9d;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 3px 8px rgba(255, 107, 157, 0.1);
}

.med-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.2);
}

.med-card div {
    flex-grow: 1;
}

.med-card strong {
    color: #ff3d57;
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.med-card div {
    color: #666;
    font-size: 15px;
}

.take-btn {
    background: linear-gradient(90deg, #ff9a8b, #ff6b9d);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 3px 8px rgba(255, 107, 157, 0.3);
}

.take-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(255, 107, 157, 0.4);
}

.take-btn:disabled {
    background: #d0d0d0;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

#schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#schedule-table th {
    background: linear-gradient(90deg, #5ce1e6, #2a9de9);
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: 600;
}

#schedule-table td {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    background: white;
}

#schedule-table tr:hover td {
    background-color: #f8fdff;
}

#schedule-table tr.taken td {
    background-color: #f0fffa;
    color: #00a651;
}

#schedule-table tr.taken td:last-child {
    font-weight: bold;
    color: #00c271;
}

.error {
    color: #ff3d57;
    padding: 15px;
    background: #ffebee;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
}

.reset-btn {
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e) !important;
    color: white !important;
    border: none;
    padding: 16px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
    display: block;
    text-align: center;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.4);
}

/* Mensagem especial para a Fran */
.fran-message {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #fff0f8 0%, #f0f9ff 100%);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid #ffeef7;
}

.fran-message::before {
    content: "❤️";
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 80px;
    opacity: 0.1;
    z-index: 0;
}

.fran-message p {
    position: relative;
    z-index: 1;
    font-size: 18px;
    color: #ff6b9d;
    font-style: italic;
    margin: 0;
    line-height: 1.6;
}

/* Responsividade */
@media (max-width: 600px) {
    .med-reminder-container {
        padding: 20px 15px;
    }
    
    .add-med-form, .upcoming-meds, .full-schedule {
        padding: 20px;
    }
    
    .med-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .take-btn {
        margin-top: 15px;
        align-self: flex-end;
    }
    
    #schedule-table {
        display: block;
        overflow-x: auto;
    }
}

.reset-btn {
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    cursor: pointer;
    margin: 20px 0 40px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
    display: block;
    width: 100%;
    text-align: center;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.4);
}

/* Adicione ao CSS */
.export-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 16px;
}

.export-btn {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.export-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 172, 254,0.4);
}

.export-help {
    margin-top: 15px;
    color: #4a6fa8;
    font-size: 14px;
    font-style: italic;
}

