/* =============================================
   Σύστημα Κλήσεων - Colorful Vibrant Theme
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --grad-1: #FF6B6B;
    --grad-2: #FF8E53;
    --grad-3: #FFC107;
    --teal:   #00C9B1;
    --blue:   #4361EE;
    --purple: #7B2FF7;
    --pink:   #FF4D8D;
    --green:  #06D6A0;
    --orange: #FF8E53;
    --red:    #FF6B6B;

    --bg:       #F4F6FB;
    --surface:  #FFFFFF;
    --border:   #E8ECF4;
    --text:     #1A1D2E;
    --muted:    #7C82A0;
    --nav-h:    64px;

    --radius:   14px;
    --radius-sm: 8px;
    --shadow:   0 4px 24px rgba(67,97,238,0.10);
    --shadow-lg:0 8px 40px rgba(67,97,238,0.18);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-size: 14px;
}

/* ====== TOPNAV ====== */
.topnav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: var(--surface);
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 28px;
    z-index: 1000;
    gap: 0;
    box-shadow: 0 2px 16px rgba(67,97,238,0.07);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-right: 36px;
    flex-shrink: 0;
}

.nav-brand .brand-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(67,97,238,0.35);
}

.nav-brand .brand-text {
    font-weight: 800;
    font-size: 16px;
    color: var(--text);
    letter-spacing: -0.3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    color: var(--muted);
    transition: all 0.18s;
    white-space: nowrap;
}

.nav-links a:hover {
    background: var(--bg);
    color: var(--text);
}

.nav-links a.active {
    background: linear-gradient(135deg, rgba(67,97,238,0.12), rgba(123,47,247,0.08));
    color: var(--blue);
}

.nav-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
    margin: 0 10px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 12px;
    background: var(--bg);
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
}

.nav-avatar {
    width: 30px; height: 30px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    color: white;
    font-weight: 700;
}

.nav-new-call {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: white;
    border-radius: 40px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(67,97,238,0.35);
    transition: all 0.2s;
}

.nav-new-call:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(67,97,238,0.45);
}

/* ====== LAYOUT ====== */
.app-container { padding-top: var(--nav-h); }

.page-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 28px 24px;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
}

.page-header p {
    color: var(--muted);
    margin-top: 3px;
    font-size: 13px;
}

/* ====== LOGIN ====== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0F0C29, #302B63, #24243E);
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(67,97,238,0.3) 0%, transparent 70%);
    top: -200px; left: -100px;
    border-radius: 50%;
}

.login-wrapper::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,77,141,0.25) 0%, transparent 70%);
    bottom: -100px; right: -50px;
    border-radius: 50%;
}

.login-box {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    padding: 44px 40px;
    width: 400px;
    position: relative;
    z-index: 1;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.login-box .logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-box .logo .icon-wrap {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    margin: 0 auto 14px;
    box-shadow: 0 8px 24px rgba(67,97,238,0.5);
}

.login-box .logo h1 {
    font-size: 22px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.3px;
}

.login-box .logo p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin-top: 4px;
}

.login-box .form-group label {
    color: rgba(255,255,255,0.7);
}

.login-box .form-control {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
}

.login-box .form-control::placeholder { color: rgba(255,255,255,0.3); }
.login-box .form-control:focus {
    border-color: var(--blue);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 3px rgba(67,97,238,0.25);
}

/* ====== STAT CARDS ====== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 22px 20px;
    box-shadow: var(--shadow);
    border: 1.5px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    border-radius: 0 var(--radius) 0 80px;
    opacity: 0.1;
}

.stat-card.c1::before { background: var(--blue); }
.stat-card.c2::before { background: var(--orange); }
.stat-card.c3::before { background: var(--green); }
.stat-card.c4::before { background: var(--red); }
.stat-card.c5::before { background: var(--purple); }

.stat-card .stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-card .stat-emoji {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}

.stat-card.c1 .stat-emoji { background: rgba(67,97,238,0.12); }
.stat-card.c2 .stat-emoji { background: rgba(255,142,83,0.12); }
.stat-card.c3 .stat-emoji { background: rgba(6,214,160,0.12); }
.stat-card.c4 .stat-emoji { background: rgba(255,107,107,0.12); }
.stat-card.c5 .stat-emoji { background: rgba(123,47,247,0.12); }

.stat-card .stat-number {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.stat-card .stat-bar {
    height: 4px;
    background: var(--bg);
    border-radius: 4px;
    margin-top: 14px;
    overflow: hidden;
}

.stat-card.c1 .stat-bar-fill { background: linear-gradient(90deg, var(--blue), var(--purple)); }
.stat-card.c2 .stat-bar-fill { background: linear-gradient(90deg, var(--orange), var(--grad-3)); }
.stat-card.c3 .stat-bar-fill { background: linear-gradient(90deg, var(--green), var(--teal)); }
.stat-card.c4 .stat-bar-fill { background: linear-gradient(90deg, var(--red), var(--pink)); }
.stat-card.c5 .stat-bar-fill { background: linear-gradient(90deg, var(--purple), var(--pink)); }

.stat-bar-fill { height: 100%; border-radius: 4px; width: 60%; }

/* ====== CARDS ====== */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1.5px solid var(--border);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1.5px solid var(--border);
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    background: var(--surface);
}

.card-body { padding: 22px; }

/* ====== TABLE ====== */
.table-responsive { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

table thead th {
    padding: 11px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--muted);
    background: var(--bg);
    border-bottom: 1.5px solid var(--border);
}

table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    vertical-align: middle;
    color: var(--text);
}

table tbody tr:last-child td { border-bottom: none; }
table tbody tr { transition: background 0.15s; }
table tbody tr:hover { background: #F8FAFF; }
table tbody tr.urgent-row { background: #FFF5F5; }
table tbody tr.urgent-row:hover { background: #FFEDED; }

/* ====== FORMS ====== */
.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    font-size: 12.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.18s, box-shadow 0.18s;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(67,97,238,0.13);
}

textarea.form-control { resize: vertical; min-height: 100px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    transition: all 0.18s;
    white-space: nowrap;
}

.btn-primary   { background: linear-gradient(135deg, var(--blue), var(--purple)); color: white; box-shadow: 0 4px 14px rgba(67,97,238,0.3); }
.btn-success   { background: linear-gradient(135deg, var(--green), var(--teal));  color: white; box-shadow: 0 4px 14px rgba(6,214,160,0.3); }
.btn-warning   { background: linear-gradient(135deg, var(--orange), var(--grad-3)); color: white; box-shadow: 0 4px 14px rgba(255,142,83,0.3); }
.btn-danger    { background: linear-gradient(135deg, var(--red), var(--pink));    color: white; box-shadow: 0 4px 14px rgba(255,107,107,0.3); }
.btn-secondary { background: var(--bg); color: var(--muted); border: 1.5px solid var(--border); }
.btn-light     { background: var(--bg); color: var(--text); border: 1.5px solid var(--border); }

.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn-sm { padding: 6px 13px; font-size: 12px; }

/* ====== BADGES ====== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
}

.badge-warning   { background: #FFF3CD; color: #B45309; }
.badge-info      { background: #DBEAFE; color: #1D4ED8; }
.badge-success   { background: #D1FAE5; color: #065F46; }
.badge-danger    { background: #FFE4E6; color: #BE123C; }
.badge-secondary { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }

/* ====== ALERTS ====== */
.alert {
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 9px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity:0; transform: translateY(-8px); }
    to   { opacity:1; transform: translateY(0); }
}

.alert-success { background: #D1FAE5; color: #065F46; border-left: 4px solid var(--green); }
.alert-danger  { background: #FFE4E6; color: #BE123C; border-left: 4px solid var(--red); }
.alert-warning { background: #FFF3CD; color: #B45309; border-left: 4px solid var(--orange); }
.alert-info    { background: #DBEAFE; color: #1D4ED8; border-left: 4px solid var(--blue); }

/* ====== FILTERS ====== */
.filters-bar {
    background: var(--surface);
    padding: 16px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1.5px solid var(--border);
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filters-bar .form-group { margin-bottom: 0; flex: 1; min-width: 140px; }

/* ====== PAGINATION ====== */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 18px 0 6px;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid var(--border);
    color: var(--muted);
    transition: all 0.15s;
}

.pagination .active {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(67,97,238,0.3);
}

.pagination a:hover { background: var(--bg); color: var(--text); }

/* ====== EMPTY STATE ====== */
.empty-state {
    text-align: center;
    padding: 56px 20px;
    color: var(--muted);
}

.empty-state .icon { font-size: 48px; display: block; margin-bottom: 12px; }
.empty-state p { font-size: 15px; font-weight: 600; margin-bottom: 16px; }

/* ====== DETAIL ====== */
.message-box {
    background: linear-gradient(135deg, rgba(67,97,238,0.05), rgba(123,47,247,0.05));
    border: 1.5px solid rgba(67,97,238,0.15);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.6;
}

.notes-box {
    background: linear-gradient(135deg, rgba(255,193,7,0.07), rgba(255,142,83,0.07));
    border: 1.5px solid rgba(255,193,7,0.2);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
}

/* ====== DEMO CREDENTIALS ====== */
.demo-credentials {
    margin-top: 22px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 14px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-family: 'DM Mono', monospace;
}

.demo-credentials strong {
    display: block;
    color: rgba(255,255,255,0.7);
    margin-bottom: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .page-content { padding: 18px 14px; }
}

@media (max-width: 500px) {
    .stats-grid { grid-template-columns: 1fr; }
    .login-box { width: 95%; padding: 28px 20px; }
}
