.piima-ariza-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.piima-ariza-modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.application-details {
    margin: 15px 0;
    font-size: 13px;
}

.application-details table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.application-details th,
.application-details td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 13px;
    line-height: 1.4;
}

.application-details th {
    width: 180px;
    color: #23282d;
    font-weight: 600;
    background-color: #f8f9fa;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.application-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: right;
    background: #fff;
    padding: 12px 0;
}

.application-actions .button {
    margin-left: 8px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}

.application-actions .button:first-child {
    margin-left: 0;
}

.application-actions .button-primary {
    background: #2271b1;
    color: #fff;
    border: none;
}

.application-actions .button-primary:hover {
    background: #135e96;
}

.application-actions .button-secondary {
    background: #f6f7f7;
    color: #23282d;
    border: 1px solid #dcdcde;
}

.application-actions .button-secondary:hover {
    background: #f0f0f1;
}

.application-actions .button-danger {
    background: #dc3545;
    color: #fff;
    border: none;
}

.application-actions .button-danger:hover {
    background: #c82333;
}

@media screen and (max-width: 782px) {
    .piima-ariza-modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 15px;
    }
    
    .application-details th,
    .application-details td {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .application-actions {
        text-align: center;
    }
    
    .application-actions .button {
        margin: 4px;
        width: 100%;
    }
}

.piima-ariza-moderator-dashboard {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 13px;
}

.piima-ariza-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.piima-ariza-stat-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
    text-decoration: none;
    color: #2c3338;
    transition: all 0.3s ease;
    border: 1px solid #dcdcde;
}

.piima-ariza-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.piima-ariza-stat-box.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.piima-ariza-stat-box h3 {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: inherit;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #2271b1;
}

.piima-ariza-stat-box.active .stat-number {
    color: #fff;
}

.piima-ariza-recent {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #dcdcde;
    margin-bottom: 20px;
}

.piima-ariza-recent h2 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #1d2327;
    padding-bottom: 15px;
    border-bottom: 2px solid #dcdcde;
}

.piima-ariza-filters {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    border: 1px solid #dcdcde;
}

.piima-ariza-filter-form {
    width: 100%;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1d2327;
    font-size: 12px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    transition: border-color 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.filter-actions {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.filter-actions .button {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-actions .button:first-child {
    background: #2271b1;
    color: #fff;
    border: none;
}

.filter-actions .button:first-child:hover {
    background: #135e96;
}

.filter-actions .button:last-child {
    background: #f6f7f7;
    color: #1d2327;
    border: 1px solid #dcdcde;
}

.filter-actions .button:last-child:hover {
    background: #f0f0f1;
}

/* Стили для таблицы */
.wp-list-table {
    width: 100%;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    table-layout: fixed;
}

.wp-list-table thead th {
    background: #f0f0f1;
    padding: 10px;
    font-weight: 600;
    color: #1d2327;
    font-size: 13px;
    border-bottom: 2px solid #dcdcde;
    white-space: nowrap;
}

.wp-list-table thead th:nth-child(1) { width: 8%; }  /* ID */
.wp-list-table thead th:nth-child(2) { width: 20%; } /* Школа */
.wp-list-table thead th:nth-child(3) { width: 15%; } /* Имя */
.wp-list-table thead th:nth-child(4) { width: 15%; } /* Телефон */
.wp-list-table thead th:nth-child(5) { width: 12%; } /* Статус */
.wp-list-table thead th:nth-child(6) { width: 15%; } /* Дата */
.wp-list-table thead th:nth-child(7) { width: 15%; } /* Действия */

.wp-list-table tbody td {
    padding: 10px;
    vertical-align: middle;
    border-bottom: 1px solid #dcdcde;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-list-table tbody tr {
    transition: all 0.2s ease;
}

.wp-list-table tbody tr:hover {
    background-color: #f0f6fc;
    box-shadow: 0 0 0 1px #2271b1;
    transform: translateY(-1px);
    position: relative;
    z-index: 1;
}

.wp-list-table tbody tr:hover td {
    border-color: #2271b1;
}

.wp-list-table tbody tr:hover + tr td {
    border-top-color: #2271b1;
}

.wp-list-table tbody tr:hover .view-application {
    background: #135e96;
    transform: scale(1.05);
}

.wp-list-table tbody tr:hover {
    background-color: #f6f7f7;
}

.wp-list-table tbody tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #f0f6fc;
    color: #2271b1;
}

.status-approved {
    background: #edfaef;
    color: #00a32a;
}

.status-rejected {
    background: #fcf0f1;
    color: #d63638;
}

/* Стили для кнопок действий */
.view-application {
    padding: 5px 10px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.view-application:hover {
    background: #135e96;
}

/* Стили для пагинации */
.tablenav {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 2px solid #dcdcde;
}

.tablenav-pages {
    float: right;
}

.tablenav-pages .page-numbers {
    display: inline-block;
    padding: 3px 8px;
    margin: 0 2px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    text-decoration: none;
    color: #2271b1;
    font-size: 12px;
}

.tablenav-pages .page-numbers.current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.tablenav-pages .page-numbers:hover:not(.current) {
    background: #f6f7f7;
}

/* Медиа-запросы */
@media screen and (max-width: 782px) {
    .piima-ariza-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .piima-ariza-recent {
        padding: 15px;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .wp-list-table {
        display: block;
        overflow-x: auto;
    }
    
    .tablenav-pages {
        float: none;
        text-align: center;
    }
} 