/*
Theme Name:     Bettafi
Theme URI:      https://www.helpfulinsightsolution.com/hire-wordpress-developers
Description:    Child theme of 2025
Author:         Helpful Insight Private Limited
Author URI:     https://www.helpfulinsightsolution.com
Template:       twentytwentyfive
Version:        1.0.0
*/

/*....................................................................................*/
/*.............. IMPORTANT: UTILIZING THE AUTOMATIC UPDATE FEATURE OF THIS CHILD THEME WILL OVERWRITE CODE PLACED WITHIN THIS FILE. 
 * PLEASE PLACE YOUR CODE UNDER APPEARRANCE >> CUSTOM CSS, OR IN THEME OPTIONS >> CUSTOM CSS  ..........*/
/*....................................................................................*/

/* ======================================================
   Bettafi Auth & Referral System Styles
   ====================================================== */

/* -----------------------------
   Global helpers
------------------------------ */
#authMsg p,
#otpMsg p {
    margin-top: 10px;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    max-width: 420px;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

input[readonly] {
    background-color: #f9fafb;
    cursor: pointer;
}

/* -----------------------------
   Buttons
------------------------------ */
button {
    padding: 10px 18px;
    background-color: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

button:hover {
    background-color: #1d4ed8;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button + button {
    margin-left: 8px;
}

/* -----------------------------
   Auth Forms
------------------------------ */
#registerForm,
#loginForm {
    max-width: 460px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 30px;
    background-color: #ffffff;
}

#registerForm h3,
#loginForm h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 20px;
}

/* -----------------------------
   OTP Verification
------------------------------ */
#verifyOtp,
#resendOtp {
    margin-top: 8px;
}

#otpMsg {
    margin-top: 12px;
}

/* -----------------------------
   Dashboard
------------------------------ */
h2 {
    margin-bottom: 10px;
}

h3 {
    margin-top: 30px;
    margin-bottom: 12px;
}

#bettafiRefLink {
    max-width: 420px;
}

/* Logout link */
a[style*="color:red"] {
    text-decoration: none;
}

a[style*="color:red"]:hover {
    text-decoration: underline;
}

/* -----------------------------
   Tables (Dashboard + Admin)
------------------------------ */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background-color: #fff;
}

table th,
table td {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    text-align: left;
    font-size: 14px;
}

table th {
    background-color: #f3f4f6;
    font-weight: 600;
}

table tr:nth-child(even) {
    background-color: #fafafa;
}

/* -----------------------------
   Pagination
------------------------------ */
.bettafi-pagination,
div[style*="ref_page"] {
    margin-top: 15px;
}

.bettafi-pagination a,
div[style*="ref_page"] a {
    display: inline-block;
    padding: 6px 10px;
    margin-right: 6px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    color: #1f2937;
}

.bettafi-pagination a:hover {
    background-color: #e5e7eb;
}

.bettafi-pagination a[style*="font-weight:bold"] {
    background-color: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* -----------------------------
   Responsive tweaks
------------------------------ */
@media (max-width: 600px) {

    #registerForm,
    #loginForm {
        padding: 15px;
    }

    table th,
    table td {
        font-size: 13px;
        padding: 8px;
    }

    button {
        width: 100%;
        margin-top: 6px;
    }

    button + button {
        margin-left: 0;
    }
}
