/**
 * Owner Confirmation Styles
 */

/* Container and General Styles */
.owner-confirmation-container {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

.owner-confirmation-title {
    font-size: 2.2rem;
    font-weight: 500;
    color: #4ACBD3;
    margin-bottom: 30px;
}

.owner-confirmation-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Filters */
.owner-confirmation-filters {
    margin-bottom: 30px;
}

.owner-confirmation-filters form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-item {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

.filter-select {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    background-color: white;
    font-size: 14px;
    width: 180px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="%23333" viewBox="0 0 16 16"><path d="M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    background-size: 12px;
    outline: none;
}

.filter-label {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #777;
    pointer-events: none;
}

.filter-btn {
    display: inline-block;
    background-color: #4ACBD3;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filter-btn:hover {
    background-color: #3db9c0;
}

/* Confirmation Grid */
.owner-confirmation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.confirmation-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.confirmation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 20px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.user-info {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
}

.property-info {
    font-size: 14px;
    margin: 0;
    color: #666;
}

.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.status-badge.proses {
    background-color: #4ACBD3;
}

.status-badge.diterima {
    background-color: #2ECC71;
}

.status-badge.ditolak {
    background-color: #E74C3C;
}

.card-body {
    padding: 20px;
}

.payment-info {
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    margin-bottom: 10px;
    font-size: 14px;
}

.info-label {
    flex: 0 0 140px;
    color: #777;
}

.info-value {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.action-buttons {
    text-align: center;
    margin-top: 15px;
}

.view-proof-btn {
    display: inline-block;
    background-color: #FCD615;
    color: #333;
    padding: 10px 15px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.view-proof-btn:hover {
    background-color: #F1C40F;
}

/* No Data */
.no-data {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 10px;
    color: #666;
    font-size: 16px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: auto;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    animation: modal-appear 0.3s ease;
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #777;
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover {
    color: #333;
}

.modal-header {
    padding: 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .modal-body {
        flex-direction: row;
    }
}

.bukti-pembayaran-container {
    padding: 20px;
    flex: 0 0 100%;
    text-align: center;
    background-color: #f9f9f9;
}

@media (min-width: 768px) {
    .bukti-pembayaran-container {
        flex: 0 0 50%;
    }
}

#bukti-pembayaran-img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.payment-details {
    padding: 20px;
    flex: 0 0 100%;
}

@media (min-width: 768px) {
    .payment-details {
        flex: 0 0 50%;
    }
}

.payment-details h4 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}

.payment-info-detail {
    margin-bottom: 5px;
    font-size: 14px;
}

.payment-info-detail strong {
    display: inline-block;
    width: 150px;
    color: #777;
    font-weight: normal;
}

.payment-info-detail span {
    font-weight: 500;
    color: #333;
}

.payment-confirmation {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.terima-btn, .tolak-btn {
    flex: 1;
    padding: 12px 0;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.terima-btn {
    background-color: #2ECC71;
    color: white;
}

.terima-btn:hover {
    background-color: #27AE60;
}

.tolak-btn {
    background-color: #E74C3C;
    color: white;
}

.tolak-btn:hover {
    background-color: #C0392B;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4ACBD3;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}