/* Add these styles to your existing CSS */
.affair-item {
    position: relative;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.affair-header {
    margin-bottom: 15px;
}

.affair-title {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.affair-date {
    color: #666;
    font-size: 14px;
}

.affair-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
}

.btn-edit, .btn-delete {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.btn-edit {
    background-color: #4CAF50;
    color: white;
}

.btn-edit:hover {
    background-color: #3e8e41;
}

.btn-delete {
    background-color: #f44336;
    color: white;
}

.btn-delete:hover {
    background-color: #d32f2f;
}

.affair-divider {
    border: 0;
    height: 1px;
    background-color: #eee;
    margin: 15px 0 0;
}

/* Keep your existing modal and other styles */
/* Header Styles */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header h1 {
    margin: 0;
    font-size: 2rem;
    padding: 10px 0;
}

.header h1 i {
    margin-right: 10px;
}

.subtitle {
    margin: 5px 0 0;
    font-size: 1rem;
    color: #ecf0f1;
    font-weight: 300;
}

/* Add Button Container */
.date-display {
    /* position: absolute; */
    top: 20px;
     right: 20px; 
     margin: 3px;
     display: flex;
     justify-content: end;
}

/* Add Button Styles */
.btn-date-selector {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-date-selector:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-date-selector:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-date-selector.disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

/* Modal Styles (keep your existing modal styles) */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #333;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn-primary {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #27ae60;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .header {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.5rem;
        padding-top: 30px; /* Make space for the button */
    }
    
    .date-display {
        top: 15px;
        right: 15px;
    }
    
    .modal-content {
        margin: 20% auto;
        width: 90%;
    }
}

.affair-container{
 position: relative;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #e9e6e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);   
}