/* Frontend Styles for Tabayyun PA Jeneponto */

.tpaj-frontend-wrap {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.tpaj-frontend-header {
    border-bottom: 3px solid #2271b1;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.tpaj-frontend-header h2 {
    color: #2271b1;
    font-size: 26px;
    margin: 0;
    font-weight: 600;
}

.tpaj-frontend-search {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.tpaj-frontend-search form {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    max-width: 600px;
}

.tpaj-search-box {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #8c8f94;
    border-radius: 25px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.tpaj-search-box:focus {
    outline: none;
    border-color: #2271b1;
}

.tpaj-search-btn,
.tpaj-reset-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.tpaj-search-btn {
    background: #2271b1;
    color: #fff;
}

.tpaj-search-btn:hover {
    background: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(34,113,177,0.3);
}

.tpaj-reset-btn {
    background: #d63638;
    color: #fff;
}

.tpaj-reset-btn:hover {
    background: #b32d2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(214,54,56,0.3);
}

.tpaj-frontend-table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
}

.tpaj-frontend-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.tpaj-frontend-table thead {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
}

.tpaj-frontend-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #135e96;
}

.tpaj-frontend-table tbody tr {
    transition: background-color 0.2s;
}

.tpaj-frontend-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.tpaj-frontend-table tbody tr:hover {
    background: #f0f6fc;
}

.tpaj-frontend-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e1e1e1;
}

.tpaj-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: #fff;
    box-shadow: 0 2px 4px rgba(40,167,69,0.3);
}

.badge-pending {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #000;
    box-shadow: 0 2px 4px rgba(255,193,7,0.3);
}

.tpaj-link-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #2271b1;
    color: #fff !important;
    text-decoration: none;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.tpaj-link-btn:hover {
    background: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(34,113,177,0.3);
}

.tpaj-no-link {
    color: #999;
    font-style: italic;
}

.tpaj-empty-message {
    text-align: center;
    padding: 60px 20px !important;
}

.tpaj-empty-message .tpaj-icon {
    font-size: 60px;
    display: block;
    margin-bottom: 15px;
}

.tpaj-empty-message p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tpaj-frontend-wrap {
        padding: 20px 15px;
    }
    
    .tpaj-frontend-header h2 {
        font-size: 20px;
    }
    
    .tpaj-frontend-search form {
        flex-direction: column;
        gap: 10px;
    }
    
    .tpaj-search-box,
    .tpaj-search-btn,
    .tpaj-reset-btn {
        width: 100%;
    }
    
    .tpaj-frontend-table {
        font-size: 12px;
    }
    
    .tpaj-frontend-table th,
    .tpaj-frontend-table td {
        padding: 10px 8px;
    }
}

/* Print Styles */
@media print {
    .tpaj-frontend-search {
        display: none;
    }
    
    .tpaj-frontend-wrap {
        box-shadow: none;
        padding: 10px;
    }
    
    .tpaj-frontend-table {
        font-size: 10px;
    }
    
    .tpaj-link-btn {
        background: none;
        color: #000 !important;
        text-decoration: underline;
    }
}
