/* Auction FX Dashboard Styles
 * @package Auction FX
 * @version 1.0.7
 * @update_id AFX-DASH-CSS-20251019-1019
 */

/* Table and Form Styles from my-advertisements.php */
.advertisements-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.advertisements-table th,
.advertisements-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}
.advertisements-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}
@media screen and (max-width: 600px) {
    .advertisements-table thead {
        display: none;
    }
    .advertisements-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
    }
    .advertisements-table td {
        display: block;
        text-align: right;
        position: relative;
        padding-left: 50%;
    }
    .advertisements-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        font-weight: bold;
        text-align: left;
    }
}
@media screen and (min-width: 601px) {
    .advertisements-table {
        table-layout: fixed;
    }
    .advertisements-table tr {
        display: table-row;
    }
    .advertisements-table td {
        display: table-cell;
    }
}
.form-row-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}
.form-row-half {
    flex: 1 1 45%;
    box-sizing: border-box;
    min-width: 200px;
}
.form-row-half select,
.form-row-half input,
.form-row-half textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.form-row-half .flex-label {
    display: flex;
    width: 90%;
}
.form-row-half .flex-label .label-text {
    flex: 0 0 50%;
}
.form-row-half .flex-label .flex-checkbox {
    flex: 0 0 5%;
}
#categories-container {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
#categories-container .category-label {
    flex: 0 0 auto;
}
#image-container {
    display: none;
}
.woocommerce-form-row label {
    margin-bottom: 5px;
    display: block;
}
.woocommerce-button {
    background-color: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.woocommerce-button:hover {
    background-color: #005177;
}

/* Dashboard Layout Styles from dashboard.php */
.auction-fx-dashboard .dashboard-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    gap: 0 !important;
}
.auction-fx-dashboard .dashboard-nav {
    width: 100% !important;
    min-width: 100% !important;
    padding: 10px 0 !important;
    background: #f8f9fa !important;
    border-bottom: 1px solid #ddd !important;
    position: relative !important;
    z-index: 1000 !important;
}
.hamburger-menu {
    display: none !important;
}
.hamburger-icon {
    font-size: 24px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 10px !important;
    color: #333 !important;
}
.desktop-nav {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 10px 0 !important;
}

.afx-lost-password-link {
    display: flex; /* Enables Flexbox */
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
    padding: 10px 15px !important;
    margin: 0 15% 0 15%;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    background-color: #0073aa !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: background-color 0.3s !important;
}
.desktop-nav button {
    padding: 10px 20px !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    background-color: #f0f0f0 !important;
    color: #333 !important;
    cursor: pointer !important;
    transition: background-color 0.3s !important;
}
.desktop-nav button:hover,
.desktop-nav .active {
    background-color: #0073aa !important;
    color: #fff !important;
}
.mobile-nav {
    display: none !important;
    position: absolute !important;
    top: 50px !important;
    left: 0 !important;
    width: 200px !important;
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    z-index: 1000 !important;
}
.mobile-nav button {
    display: block !important;
    width: 100% !important;
    padding: 10px !important;
    border: none !important;
    background: none !important;
    text-align: left !important;
    color: #333 !important;
    border-bottom: 1px solid #ddd !important;
}
.mobile-nav button:last-child {
    border-bottom: none !important;
}
.mobile-nav button:hover,
.mobile-nav .active {
    background-color: #0073aa !important;
    color: #fff !important;
}
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }
    .hamburger-menu {
        display: block !important;
    }
    .hamburger-menu.active .mobile-nav {
        display: block !important;
    }
}
.auction-fx-dashboard .dashboard-content {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}
.dashboard-sidebar.auction-fx-sidebar {
    display: none !important;
}

/* Authentication Form Styles */
.auction-fx-auth {
    max-width: 1200px !important;
    margin: 20px auto !important;
    padding: 20px !important;
    display: block !important;
    visibility: visible !important;
}
.lost-password-section,
.reset-password-section {
    max-width: 500px !important;
    margin: 0 auto !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}
.login-section,
.register-section {
    flex: 1 1 45%;
    min-width: 300px;
    margin-bottom: 20px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}
.auth-columns {
    display: flex;
    flex-wrap: no wrap;
    gap: 20px;
    align-items: center;
}
.auction-fx-auth h2 {
    font-size: 24px !important;
    margin-bottom: 15px !important;
    color: #333 !important;
}
.auction-fx-auth .login,
.auction-fx-auth .register,
.auction-fx-auth .lost-password,
.auction-fx-auth .reset-password {
    background: #fff !important;
    padding: 20px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    display: block !important;
}
.auction-fx-auth .login p,
.auction-fx-auth .register p,
.auction-fx-auth .lost-password p,
.auction-fx-auth .reset-password p {
    margin: 0 0 15px !important;
    font-size: 14px !important;
}
.auction-fx-auth .login label,
.auction-fx-auth .register label,
.auction-fx-auth .lost-password label,
.auction-fx-auth .reset-password label {
    display: block !important;
    margin-bottom: 5px !important;
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 16px !important;
}
.auction-fx-auth .login input,
.auction-fx-auth .register input,
.auction-fx-auth .register select,
.auction-fx-auth .lost-password input,
.auction-fx-auth .reset-password input {
    width: 100% !important;
    padding: 10px !important;
    margin-bottom: 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 14px !important;
}
.auction-fx-auth .login input[type="submit"],
.auction-fx-auth .register input[type="submit"],
.auction-fx-auth .lost-password input[type="submit"],
.auction-fx-auth .reset-password input[type="submit"] {
    background-color: #0073aa !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background-color 0.3s !important;
    font-size: 16px !important;
}
.auction-fx-auth .login input[type="submit"]:hover,
.auction-fx-auth .register input[type="submit"]:hover,
.auction-fx-auth .lost-password input[type="submit"]:hover,
.auction-fx-auth .reset-password input[type="submit"]:hover {
    background-color: #005177 !important;
}
.auction-fx-auth .lost-password a,
.auction-fx-auth .login a,
.auction-fx-auth .reset-password a {
    color: #0073aa !important;
    text-decoration: none !important;
}
.auction-fx-auth .lost-password a:hover,
.auction-fx-auth .login a:hover,
.auction-fx-auth .reset-password a:hover {
    color: #005177 !important;
    text-decoration: underline !important;
}
.auction-fx-auth .error,
.auction-fx-auth .success {
    color: #f44336 !important;
    margin-bottom: 15px !important;
    padding: 10px !important;
    border-radius: 4px !important;
    background: rgba(244, 67, 54, 0.1) !important;
}
.auction-fx-auth .success {
    color: #4caf50 !important;
    background: rgba(76, 175, 80, 0.1) !important;
}
.auction-fx-auth .footer-note {
    text-align: center !important;
    font-size: 12px !important;
    color: #666 !important;
    margin-top: 20px !important;
}
@media (max-width: 768px) {
    .auth-columns {
        flex-direction: column;
    }
    .login-section,
    .register-section,
    .lost-password-section,
    .reset-password-section {
        flex: 1 1 100%;
        min-width: 100%;
        margin-bottom: 15px !important;
    }
    .auction-fx-auth {
        padding: 10px !important;
    }
    .auction-fx-auth h2 {
        font-size: 20px !important;
    }
    .auction-fx-auth .login input,
    .auction-fx-auth .register input,
    .auction-fx-auth .register select,
    .auction-fx-auth .lost-password input,
    .auction-fx-auth .reset-password input {
        padding: 8px !important;
        font-size: 12px !important;
    }
    .auction-fx-auth .login input[type="submit"],
    .auction-fx-auth .register input[type="submit"],
    .auction-fx-auth .lost-password input[type="submit"],
    .auction-fx-auth .reset-password input[type="submit"] {
        padding: 8px 16px !important;
        font-size: 14px !important;
    }
}