/* Базові стилі для модального вікна */
#register-info {
    display: none;
    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;
}

.info-modal-container {
    width: 90%;
    max-width: 600px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
}

.info-modal-header {
    padding: 20px;
    background-color: #2c3e50;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.info-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 10px;
}

.info-modal-content {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.info-modal-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #e9ecef;
}

/* Стилі для карток з інформацією */
.info-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.info-card-header {
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.info-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.info-card-content {
    padding: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #495057;
}

.info-value {
    color: #212529;
    text-align: right;
}

.info-value.active {
    color: #28a745;
    font-weight: 600;
}

.info-value.inactive {
    color: #dc3545;
    font-weight: 600;
}

/* Стилі для кнопок */
.info-action-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.info-read-btn {
    background-color: #3498db;
    color: white;
}

.info-read-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.info-close-btn {
   /* background-color: #6c757d;*/
    background-color: rgb(180, 3, 3);
    color: white;
}

.info-close-btn:hover {
  /*  background-color: #5a6268;*/
    background-color: darkred;
    transform: translateY(-2px);
}

/* Стилі для станів завантаження та помилок */
.info-loading, .info-error {
    text-align: center;
    padding: 30px;
}

.info-error {
    color: #dc3545;
}

.error-detail {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 10px;
}

/* Анімація */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптація для малих екранів */
@media (max-width: 768px) {
    .info-modal-container {
        width: 95%;
    }
    
    .info-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .info-card-header h3 {
        font-size: 1rem;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-label, .info-value {
        text-align: left;
        width: 100%;
    }
    
    .info-value {
        margin-top: 3px;
    }
    
    .info-modal-footer {
        flex-direction: column;
    }
    
    .info-action-btn {
        width: 100%;
    }
}