/*
Theme Name: Velki Clone
Theme URI: https://velkieagentlist.com/
Author: Tom Malik
Description: A custom Velki Agent List theme with dynamic agent management.
Version: 1.1
*/

/* --- Global Reset & Body --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fdb913; /* Brand Yellow/Orange */
    color: #333;
}

a { text-decoration: none; }
ul { list-style: none; }

/* --- Header Styling (Fixed Width Desktop) --- */
header {
    background-color: #3b5998;
    display: flex;
    justify-content: center; /* Center the inner content wrapper */
    padding: 0; /* Remove padding from full-width container */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Inner Wrapper for Content Alignment */
.header-wrapper {
    width: 95%;
    max-width: 1200px; /* Aligns with Body */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Dynamic Logo IMG Styling */
.logo-container img {
    max-height: 50px;
    width: auto;
}

/* Fallback Text Logo */
.logo-text {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    font-family: 'Arial Black', sans-serif;
    line-height: 1.2;
}

.logo-icon {
    color: #cc0000;
    margin-right: 5px;
}

nav ul {
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav a {
    color: #ffc107;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: #fff;
    text-decoration: underline;
}

.search-container input {
    padding: 8px 12px;
    border-radius: 4px;
    border: none;
    outline: none;
    width: 200px;
}

/* --- Main Content --- */
.main-container {
    width: 95%;
    max-width: 1200px;
    background-color: #fff;
    margin: 30px auto 10px auto;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.list-title {
    background-color: #3b5998;
    color: white;
    text-align: center;
    padding: 8px;
    font-weight: bold;
    font-size: 14px;
}

.marquee-bar {
    background-color: #4b0082;
    color: white;
    padding: 6px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
}

.status-bar {
    background-color: #555;
    color: white;
    text-align: center;
    padding: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

/* --- Table --- */
.table-responsive {
    overflow-x: auto;
    min-height: 300px;
    position: relative;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

thead {
    background-color: #eee;
}

thead th {
    padding: 10px;
    text-align: center;
    border-bottom: 2px solid #ddd;
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
}

tbody tr {
    border-bottom: 1px solid #eee;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody td {
    padding: 10px 5px;
    text-align: center;
    vertical-align: middle;
    color: #000;
    font-weight: 600;
}

.col-type { font-weight: bold; }
.type-admin { color: red; }
.type-home { color: black; }
.type-super { color: #673ab7; }
.type-master { color: #009688; }
.type-server { color: #2196f3; }

.col-name { text-align: left; padding-left: 20px; }
.name-admin { color: #d35400; }

.wa-btn {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: inline-block;
    transition: opacity 0.2s;
}

.wa-btn:hover { opacity: 0.8; }

a.wa-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.col-number { color: #e67e22; }
.col-complain {
    color: #e67e22;
    text-transform: uppercase;
    font-size: 10px;
    cursor: pointer;
}

/* --- Footers --- */
.card-footer {
    background-color: #3b5998;
    height: 20px;
    margin-top: 20px;
}

.page-footer {
    text-align: center;
    padding: 20px;
    color: #333;
}

.copyright {
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 10px;
}

.copyright span { color: #cc0000; }

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: transform 0.2s;
}

.social-icon:hover { transform: scale(1.1); }
.icon-fb { background-color: #3b5998; }
.icon-x { background-color: #000; }
.icon-yt { background-color: #ff0000; }
.icon-wp { background-color: #21759b; }
.icon-wa { background-color: #25D366; }

.footer-brand {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* Loader */
.loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b5998;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-wrapper {
        padding: 5px; /* Smaller padding on mobile */
    }
    .logo-container { order: 1; flex: 1; }
    .search-container { order: 2; width: auto; }
    .search-container input { width: 140px; }
    nav { order: 3; width: 100%; margin-top: 5px; overflow-x: auto; white-space: nowrap; }
    nav ul { padding-bottom: 5px; justify-content: flex-start; }
    table { font-size: 10px; }
    .col-name { padding-left: 5px; }
}