/* Kontener główny */
.rr-admin-container {
    max-width: 1200px;
    margin: 20px 0;
}


/* ikonka przycisku */
.dashicons2 {
  display: flex;
  align-items: center;      /* wyśrodkowanie wertykalne */
  justify-content: center;  /* opcjonalnie: wyśrodkowanie horyzontalne */
  gap: 8px;                 /* odstęp między ikonką a tekstem */
  padding: 12px 20px;
  /* reszta stylów... */
}

/* Widoki */
.rr-view {
    margin-bottom: 20px;
}

/* Lista róż - nagłówek */
.rr-list-header {
    margin-bottom: 20px;
}

#rr-add-new-rose-btn .dashicons {
    font-size: 18px;
}

/* Szczegóły róży - nagłówek */
.rr-detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.rr-detail-header h2 {
    margin: 0;
    color: #0073aa;
}

#rr-back-to-list-btn .dashicons {
    margin: 0;
}

/* Sekcje */
.rr-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.rr-section h2,
.rr-section h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

/* Karty róż */
.rr-roza-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.rr-roza-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.rr-roza-header h3 {
    margin: 0;
    color: #0073aa;
}

.rr-roza-info {
    background: #fff;
    padding: 10px;
    border-radius: 3px;
    margin-bottom: 15px;
}

.rr-roza-info p {
    margin: 5px 0;
}

/* Sekcja uczestników */
.rr-uczestnicy-section {
    margin-top: 15px;
}

.rr-participants-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.rr-participants-header h3 {
    margin: 0;
}

#rr-add-uczestnik-btn .dashicons {
    margin: 0;
}

.rr-uczestnicy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rr-uczestnicy-header h4 {
    margin: 0;
}

.rr-no-uczestnicy {
    color: #666;
    font-style: italic;
    padding: 10px;
    background: #fff;
    border-radius: 3px;
}

/* Tabela uczestników */
.rr-uczestnicy-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.rr-uczestnicy-table thead {
    background: #0073aa;
    color: #fff;
}

.rr-uczestnicy-table th,
.rr-uczestnicy-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.rr-uczestnicy-table tbody tr:hover {
    background: #f0f0f0;
}

.rr-uczestnicy-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

/* Modal */
.rr-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.rr-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.rr-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.rr-modal-close:hover,
.rr-modal-close:focus {
    color: #000;
}

.rr-modal-content h2 {
    margin-top: 0;
    color: #0073aa;
}

/* Przyciski */
.button .dashicons {
    line-height: 1;
    margin-right: 4px;
}

.button-primary .dashicons {
    vertical-align: middle;
}

.rr-open-roza {
    line-height: 1;
    margin-right: 5px;
}

.rr-delete-roza {
    background: #dc3232 !important;
    border-color: #dc3232 !important;
    color: #fff !important;
}

.rr-delete-roza:hover {
    background: #a00 !important;
    border-color: #a00 !important;
}

.rr-delete-roza .dashicons {
    color: #fff;
}

.rr-delete-uczestnik {
    background: #dc3232;
    border-color: #dc3232;
    color: #fff;
}

.rr-delete-uczestnik:hover {
    background: #a00;
    border-color: #a00;
}

/* Box dotacji */
.rr-donation-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 5px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}

.rr-donation-box h3 {
    margin-top: 0;
    color: #856404;
}

.rr-donation-box p {
    color: #856404;
    margin-bottom: 15px;
}

.rr-donation-box button {
    background: #0073aa !important;
    border-color: #0073aa !important;
    color: #fff !important;
    padding: 10px 20px !important;
    font-size: 16px !important;
}

.rr-donation-box button:hover {
    background: #005177 !important;
    border-color: #005177 !important;
}

/* Responsywność */
@media (max-width: 768px) {
    .rr-roza-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rr-roza-header .button {
        margin-top: 10px;
    }
    
    .rr-uczestnicy-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rr-uczestnicy-header .button {
        margin-top: 10px;
    }
    
    .rr-uczestnicy-table {
        font-size: 14px;
    }
    
    .rr-uczestnicy-table th,
    .rr-uczestnicy-table td {
        padding: 5px;
    }
}