/* style.css - Naptár stílusok */

/* Alapvető stílusok */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

header, footer {
    text-align: center;
    padding: 20px 0;
}

main {
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2 {
    margin-bottom: 20px;
    color: #444;
}

/* Naptár konténer */
.calendar-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.nav-button {
    background-color: #f0f0f0;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    text-decoration: none;
    color: #333;
}

.nav-button:hover {
    background-color: #e0e0e0;
}

/* Naptár táblázat */
.calendar table {
    width: 100%;
    border-collapse: collapse;
}

.calendar th, .calendar td {
    text-align: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
}

.calendar th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.calendar td {
    cursor: pointer;
    transition: background-color 0.3s;
}

.calendar td:hover {
    background-color: #f0f0f0;
}

.calendar td.inactive {
    color: #ccc;
    background-color: #f9f9f9;
    cursor: default;
}

.calendar td.today {
    font-weight: bold;
    border: 2px solid #666;
}

.calendar td.at-father {
    background-color: #b3d9ff; /* Kék */
    color: #333;
}

.calendar td.at-mother {
    background-color: #ffb3d9; /* Rózsaszín */
    color: #333;
}

.calendar td a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Információs konténer */
.info-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

#today-info {
    text-align: center;
}

#today-info p {
    font-size: 18px;
    margin-bottom: 20px;
}

#image-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Időszakok konténer */
.periods-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.period-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

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

.period-item.at-father {
    background-color: #e6f2ff; /* Világoskék */
}

.period-item.at-mother {
    background-color: #ffe6f2; /* Világos rózsaszín */
}

.period-info {
    font-size: 16px;
}

.period-item-actions button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
    transition: transform 0.2s;
}

.period-item-actions button:hover {
    transform: scale(1.2);
}

.edit-button {
    text-decoration: none;
    font-size: 18px;
    margin-right: 10px;
}

/* Adatkezelés */
.data-management {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.import-container {
    margin-top: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

input[type="file"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Üzenet */
.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: bold;
}

.message.success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.message.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
}

.edit-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    text-decoration: none;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.button-group button {
    padding: 10px 20px;
}

.button {
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Reszponzív design */
@media (max-width: 768px) {
    .calendar th, .calendar td {
        padding: 8px 5px;
        font-size: 14px;
    }
    
    .popup-content {
        width: 95%;
        padding: 20px;
    }
    
    .button-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .button-group button, .button-group .button {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .import-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .import-container input[type="file"] {
        width: 100%;
    }
}
