/**
 * Webseo Backend Admin - Optimized CSS
 * Version: 1.1.0
 */

:root {
    --webseo-primary: #1e3a5f;
    --webseo-primary-light: #2d5a8a;
    --webseo-primary-dark: #0f1f33;
    --webseo-accent: #00d4aa;
    --webseo-accent-light: #00f5c4;
    --webseo-white: #ffffff;
    --webseo-gray-100: #f1f5f9;
    --webseo-gray-200: #e2e8f0;
    --webseo-gray-300: #cbd5e1;
    --webseo-gray-400: #94a3b8;
    --webseo-gray-500: #64748b;
    --webseo-gray-700: #334155;
    --webseo-gray-800: #1e293b;
    --webseo-danger: #dc3545;
    --webseo-success: #28a745;
    --webseo-warning: #ffc107;
    --webseo-info: #17a2b8;
    --webseo-radius-md: 12px;
    --webseo-radius-lg: 16px;
    --webseo-shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --webseo-shadow-md: 0 4px 16px rgba(0,0,0,0.1);
}

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500;600;700&family=Montserrat:wght@600;700&display=swap');

/* LOGIN PAGE */
body.login {
    background: var(--webseo-primary-dark);
    font-family: 'Quicksand', sans-serif;
    min-height: 100vh;
}

body.login::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 20% 20%, rgba(0,212,170,0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(45,90,138,0.15) 0%, transparent 50%);
}

#login {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    max-width: 400px;
    margin: 0 auto;
}

body.login h1 a {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 180px;
    height: 70px;
    margin: 0 auto 15px;
    filter: drop-shadow(0 4px 15px rgba(0,212,170,0.25));
}

#loginform, #lostpasswordform {
    background: rgba(255,255,255,0.98);
    border-radius: var(--webseo-radius-lg);
    padding: 35px;
    box-shadow: var(--webseo-shadow-md);
}

#loginform label {
    color: var(--webseo-gray-700);
    font-weight: 600;
    font-size: 13px;
}

#loginform input[type="text"],
#loginform input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--webseo-gray-200);
    border-radius: var(--webseo-radius-md);
    font-size: 14px;
    margin-bottom: 16px;
    transition: border-color .2s, box-shadow .2s;
}

#loginform input:focus {
    outline: none;
    border-color: var(--webseo-accent);
    box-shadow: 0 0 0 3px rgba(0,212,170,0.2);
}

#wp-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--webseo-primary) 0%, var(--webseo-primary-light) 100%);
    color: #fff;
    border: none;
    border-radius: var(--webseo-radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

#wp-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,58,95,0.3);
}

#nav a, #backtoblog a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 13px;
}

#nav a:hover, #backtoblog a:hover {
    color: var(--webseo-accent);
}

.login .message {
    background: rgba(0,212,170,0.1);
    border-left: 4px solid var(--webseo-accent);
    border-radius: var(--webseo-radius-md);
}

#login_error {
    background: rgba(220,53,69,0.1);
    border-left: 4px solid var(--webseo-danger);
    border-radius: var(--webseo-radius-md);
}

/* ADMIN DASHBOARD */
#wpadminbar {
    background: var(--webseo-primary-dark) !important;
}

#adminmenuback, #adminmenuwrap, #adminmenu {
    background: linear-gradient(180deg, var(--webseo-primary-dark) 0%, #0a1628 100%) !important;
}

#adminmenu a {
    color: var(--webseo-gray-300) !important;
    font-family: 'Quicksand', sans-serif;
}

#adminmenu li.menu-top:hover > a,
#adminmenu .current a {
    background: rgba(0,212,170,0.15) !important;
    color: var(--webseo-accent) !important;
}

/* DASHBOARD LAYOUT */
.webseo-dashboard {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Quicksand', sans-serif;
}

.webseo-dashboard-header {
    background: #fff;
    border-radius: var(--webseo-radius-lg);
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: var(--webseo-shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-left: 5px solid var(--webseo-accent);
}

.webseo-dashboard-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--webseo-gray-800);
    margin: 0 0 5px;
}

.webseo-dashboard-header p {
    color: var(--webseo-gray-500);
    font-size: 14px;
    margin: 0;
}

.webseo-dashboard-header-actions {
    display: flex;
    gap: 10px;
}

.webseo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--webseo-radius-md);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}

.webseo-btn-accent {
    background: var(--webseo-accent);
    color: var(--webseo-primary-dark);
}

.webseo-btn-secondary {
    background: var(--webseo-gray-100);
    color: var(--webseo-gray-700);
    border: 1px solid var(--webseo-gray-200);
}

.webseo-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--webseo-shadow-sm);
}

/* STATS */
.webseo-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 1200px) {
    .webseo-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .webseo-stats-grid { grid-template-columns: 1fr; }
}

.webseo-stat-card {
    background: #fff;
    border-radius: var(--webseo-radius-lg);
    padding: 20px;
    box-shadow: var(--webseo-shadow-sm);
}

.webseo-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 20px;
}

.webseo-stat-card.posts .webseo-stat-icon { background: rgba(23,162,184,0.12); }
.webseo-stat-card.pages .webseo-stat-icon { background: rgba(40,167,69,0.12); }
.webseo-stat-card.comments .webseo-stat-icon { background: rgba(255,193,7,0.12); }
.webseo-stat-card.users .webseo-stat-icon { background: rgba(255,107,53,0.12); }

.webseo-stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--webseo-gray-800);
    line-height: 1;
    margin-bottom: 4px;
}

.webseo-stat-label {
    color: var(--webseo-gray-500);
    font-size: 13px;
}

/* GRID */
.webseo-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 25px;
}

@media (max-width: 1100px) {
    .webseo-dashboard-grid { grid-template-columns: 1fr; }
}

/* CARDS */
.webseo-card {
    background: #fff;
    border-radius: var(--webseo-radius-lg);
    box-shadow: var(--webseo-shadow-sm);
    overflow: hidden;
}

.webseo-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--webseo-gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.webseo-card-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--webseo-gray-800);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.webseo-card-body {
    padding: 20px;
}

/* QUICK ACTIONS */
.webseo-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 900px) {
    .webseo-quick-actions { grid-template-columns: repeat(2, 1fr); }
}

.webseo-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--webseo-gray-100);
    border-radius: var(--webseo-radius-md);
    text-decoration: none;
    color: var(--webseo-gray-700);
    transition: all .15s;
    border: 2px solid transparent;
}

.webseo-quick-action:hover {
    background: #fff;
    border-color: var(--webseo-accent);
    color: var(--webseo-primary);
    transform: translateY(-2px);
    box-shadow: var(--webseo-shadow-sm);
}

.webseo-quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--webseo-primary) 0%, var(--webseo-primary-light) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.webseo-quick-action span {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

/* ACTIVITY */
.webseo-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.webseo-activity-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--webseo-gray-100);
}

.webseo-activity-item:last-child {
    border-bottom: none;
}

.webseo-activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.webseo-activity-icon.post { background: rgba(23,162,184,0.12); }
.webseo-activity-icon.comment { background: rgba(255,193,7,0.12); }

.webseo-activity-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--webseo-gray-700);
}

.webseo-activity-title a {
    color: var(--webseo-primary);
    text-decoration: none;
}

.webseo-activity-title a:hover {
    color: var(--webseo-accent);
}

.webseo-activity-meta {
    font-size: 12px;
    color: var(--webseo-gray-400);
}

/* SYSTEM INFO */
.webseo-system-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.webseo-system-info li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--webseo-gray-100);
    font-size: 13px;
}

.webseo-system-info li:last-child {
    border-bottom: none;
}

.webseo-system-info .label {
    color: var(--webseo-gray-500);
}

.webseo-system-info .value {
    color: var(--webseo-gray-800);
    font-weight: 600;
}

/* FOOTER */
.webseo-dashboard-footer {
    text-align: center;
    padding: 25px;
    color: var(--webseo-gray-400);
    font-size: 12px;
}

.webseo-dashboard-footer a {
    color: var(--webseo-accent);
    text-decoration: none;
}

/* UTILITIES */
.webseo-mb-lg { margin-bottom: 25px; }
.webseo-mt-lg { margin-top: 25px; }
.webseo-mb-md { margin-bottom: 15px; }

/* ANIMATIONS - Minimal for performance */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.webseo-animate {
    animation: fadeIn .3s ease forwards;
}

.webseo-stagger > *:nth-child(1) { animation-delay: .05s; }
.webseo-stagger > *:nth-child(2) { animation-delay: .1s; }
.webseo-stagger > *:nth-child(3) { animation-delay: .15s; }
.webseo-stagger > *:nth-child(4) { animation-delay: .2s; }
