/* Main Portal Styles */
.urm-portal {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.urm-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* Tabs */
.urm-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.urm-tab {
    padding: 10px 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 4px 4px 0 0;
    margin-right: 5px;
    cursor: pointer;
}

.urm-tab.active {
    background: #2271b1;
    color: white;
}

.urm-tab-content {
    display: none;
    padding: 20px 0;
}

.urm-tab-content.active {
    display: block;
}

/* Form Styles */
.urm-form-group {
    margin-bottom: 15px;
}

.urm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.urm-form-group input[type="text"],
.urm-form-group input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.urm-submit-btn {
    background: #2271b1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.urm-submit-btn:hover {
    background: #135e96;
}

/* History Table */
#urm-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#urm-history-table th,
#urm-history-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

#urm-history-table th {
    background: #f5f5f5;
}

/* Notifications */
.urm-notification-bell {
    position: relative;
    cursor: pointer;
}

#urm-notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #d63638;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

#urm-notifications-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    width: 300px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

/* Status badges */
.status-pending {
    color: #dba617;
}

.status-processed {
    color: #4ab866;
}

/* Login required message */
.urm-login-required {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
}

.urm-login-required a {
    color: #2271b1;
    text-decoration: none;
}

.urm-login-required a:hover {
    text-decoration: underline;
}

/* Balance Display */
.urm-balance-display {
    background: #f8f9fa;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.urm-balance-amount {
    font-size: 2.5em;
    font-weight: bold;
    color: #28a745;
    margin: 10px 0;
}

/* Withdrawal Form */
#urm-withdraw-form .urm-form-group {
    margin-bottom: 15px;
}

#urm-withdraw-form small {
    display: block;
    color: #6c757d;
    margin-top: 5px;
}

/* Withdrawal History */
.urm-withdrawal-history {
    margin-top: 30px;
}

#urm-withdrawals-table {
    width: 100%;
    border-collapse: collapse;
}

#urm-withdrawals-table th {
    background: #f1f1f1;
    padding: 10px;
    text-align: left;
}

#urm-withdrawals-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* Responsive Tables */
@media (max-width: 768px) {
    #urm-withdrawals-table {
        display: block;
        overflow-x: auto;
    }
}
/* Logout Button Styling */
.urm-portal-header a.button {
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.3;
    border-radius: 3px;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border: none;
    margin-left: 25px;
    transition: all 0.3s ease;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.urm-portal-header a.button:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* If you want it even more compact */
.urm-portal-header a.button.compact {
    padding: 4px 8px;
    font-size: 12px;
}
/* Fix for Logout Button Text Wrapping */
.urm-portal-header a.button {
    white-space: nowrap;  /* This prevents text wrapping */
    min-width: auto;     /* Removes any minimum width constraints */
    padding: 6px 12px;   /* Adjust padding as needed */
    display: inline-flex;
    align-items: center;
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Header adjustments */
    .urm-portal-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .urm-header-balance,
    .urm-notification-bell,
    .urm-portal-header a.button {
        margin: 5px 0;
        width: 100%;
    }
    
    /* Tab navigation */
    .urm-tabs {
        flex-direction: column;
    }
    
    .urm-tab {
        width: 100%;
        margin: 2px 0;
        padding: 10px;
    }
    
    /* Form elements */
    .urm-form-group input,
    .urm-form-group textarea,
    .urm-form-group select {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Tables */
    #urm-history-table,
    #urm-withdrawals-table {
        display: block;
        overflow-x: auto;
    }
    
    /* Balance display */
    .urm-balance-display {
        padding: 10px;
    }
    
    /* Notification dropdown */
    #urm-notifications-dropdown {
        width: 100%;
        left: 0;
    }
}

@media (max-width: 480px) {
    /* Even smaller devices */
    .urm-portal {
        padding: 10px;
    }
    
    .urm-tab-content {
        padding: 10px;
    }
    
    /* Make buttons more touch-friendly */
    .urm-submit-btn,
    .urm-portal-header a.button {
        padding: 12px;
        font-size: 16px;
    }
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Fix header layout */
    .urm-portal-header {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }

    /* Perfect mobile logout button */
    .urm-portal-header a.button {
        width: auto;
        padding: 6px 10px;
        font-size: 12px;
        order: 2; /* Positions after notification */
        margin-left: auto; /* Pushes to right */
        animation: pulse 2s infinite;
    }

    /* Notification bell spacing */
    .urm-notification-bell {
        order: 1;
        margin-right: 10px;
    }

    /* Tab animations */
    .urm-tab:hover {
        transform: translateY(-2px);
    }
}

/* Desktop Animations */
@media (min-width: 769px) {
    .urm-portal-header a.button:hover {
        transform: scale(1.05);
    }
    .urm-tab:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
}

/* Pulse animation for logout button */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}	
/* Set initial pre-animation state */
.urm-portal,
.urm-portal-header,
.urm-tabs,
.urm-tab-content {
    opacity: 0;
}

/* Mobile-specific animation adjustments */
@media (max-width: 768px) {
    .urm-portal-header {
        animation-delay: 0.1s !important;
    }
    
    .urm-tabs {
        animation-delay: 0.3s !important;
    }
    
    .urm-tab-content.active {
        animation-delay: 0.5s !important;
    }
}
/* Custom Login Form */
.urm-login-form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.urm-login-form h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.urm-login-form .urm-error {
    color: #e74c3c;
    margin-bottom: 1rem;
    text-align: center;
}

.urm-login-form .urm-login-links {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}
/* Mobile styles for the custom login form */
@media (max-width: 768px) {
    .urm-login-form {
        padding: 20px;
        margin: 0 auto;
        max-width: 100%;
    }
    .urm-login-form input[type="text"],
    .urm-login-form input[type="password"] {
        width: 100% !important;
        font-size: 16px !important;
        padding: 12px !important;
    }
    .urm-login-form .urm-submit-btn {
        width: 100% !important;
        padding: 12px !important;
    }
    .urm-login-links {
        text-align: center;
    }
}
/* Withdrawal History Table Styles */
#urm-withdrawals-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

#urm-withdrawals-table th {
    background: #f5f5f5;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
}

#urm-withdrawals-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

#urm-withdrawals-table tr:hover {
    background-color: #f9f9f9;
}

/* Status Badge Styles - These match your PHP output */
#urm-withdrawals-table .urm-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

/* Completed Status - Green */
#urm-withdrawals-table .urm-status-processed {
    background-color: #e6f7ee;
    color: #28a745;
}

/* Processing Status - Blue */
#urm-withdrawals-table .urm-status-pending {
    background-color: #e7f1ff;
    color: #007bff;
}

/* Failed Status - Red (if you add this later) */
#urm-withdrawals-table .urm-status-failed {
    background-color: #fdecea;
    color: #dc3545;
}

/* Responsive Table */
@media (max-width: 768px) {
    #urm-withdrawals-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #urm-withdrawals-table th,
    #urm-withdrawals-table td {
        white-space: nowrap;
    }
}