/*
 * Public CSS for Manus Ad Manager Plugin
 * This file styles the custom login, register, and advertiser dashboard pages.
 */

/* --- General Reset and Layout --- */
.manus-ad-section {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fff;
}

.manus-ad-section h2 {
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #0073aa;
}

/* --- Navigation Bar --- */
.manus-ad-nav {
    background-color: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 30px;
    padding: 10px 20px;
}

.manus-ad-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.manus-ad-nav li {
    margin: 5px 10px;
}

.manus-ad-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.manus-ad-nav a:hover {
    background-color: #ddd;
    color: #000;
}

/* --- Card Grid for Overview/Analytics --- */
.manus-ad-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.manus-ad-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.manus-ad-card h3 {
    margin-top: 0;
    font-size: 1.1em;
    color: #0073aa;
}

.manus-ad-metric {
    font-size: 2.5em;
    font-weight: 700;
    color: #333;
    margin: 10px 0 0;
}

.manus-ad-feature-note {
    font-size: 0.9em;
    color: #666;
    margin-top: 15px;
    border-top: 1px dashed #eee;
    padding-top: 10px;
}

/* --- Buttons and Forms --- */
.manus-ad-button,
.manus-ad-section button,
.manus-ad-section a.manus-ad-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff !important;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.manus-ad-button:hover,
.manus-ad-section button:hover,
.manus-ad-section a.manus-ad-button:hover {
    background-color: #005177;
}

/* --- Auth Pages (Login/Register) Styling --- */

/* Full-page wrapper for modern look */
.manus-ad-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000 url(./manus_ad_auth_background.png) no-repeat center center fixed;
    background-size: cover;
    padding: 20px;
    box-sizing: border-box;
}

/* Hide theme content for full-page effect */
.manus-ad-auth-wrapper + .site-footer,
.manus-ad-auth-wrapper + .site-header {
    display: none;
}

/* Animation for form card */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#loginform, #registerform {
    max-width: 450px;
    width: 100%;
    margin: 0; /* Overrides previous margin */
    padding: 40px;
    border: none;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.8s ease-out;
}
#loginform, #registerform {
    max-width: 400px;
    margin: 30px auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#loginform p, #registerform p {
    margin-bottom: 15px;
}

#loginform label, #registerform label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

#loginform input[type="text"],
#loginform input[type="password"],
#loginform input[type="email"],
#registerform input[type="text"],
#registerform input[type="password"],
#registerform input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #0073aa; /* Blue border for modern look */
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#loginform input:focus, #registerform input:focus {
    border-color: #005177;
    box-shadow: 0 0 8px rgba(0, 115, 170, 0.5);
    outline: none;
}

#loginform .submit input, #registerform .submit input {
    width: 100%;
    padding: 14px;
    font-size: 1.1em;
    border-radius: 6px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

#loginform .submit input:hover, #registerform .submit input:hover {
    background-color: #005177;
    transform: translateY(-1px);
}

#nav {
    text-align: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

#nav a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

#nav a:hover {
    color: #005177;
    text-decoration: underline;
}

/* --- Messages --- */
p.error {
    color: #a94442;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    padding: 10px;
    border-radius: 4px;
}

p.success {
    color: #3c763d;
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    padding: 10px;
    border-radius: 4px;
}
