/* =========================================
   AXIS SKATE SHOP - ENTERPRISE PRO THEME
========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: #0b0f19;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
}

/* =========================================
   NAVBAR
========================================= */

.navbar {
    background-color: #111827;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    border-bottom: 1px solid #1f2937;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    overflow-x: auto;
    white-space: nowrap;
}

.navbar-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-text {
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 1px;
}

.brand-text span {
    color: #ef4444;
}

.nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.navbar a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 13px;
    transition: color 0.2s ease;
}

.navbar a:hover {
    color: #38bdf8;
}

.navbar a.active {
    color: #38bdf8;
}

.nav-divider {
    color: #374151;
    font-size: 14px;
    margin: 0 4px;
}

/* Admin Badge */

.admin-badge {
    background-color: #ef4444;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    vertical-align: middle;
    margin-left: 4px;
    text-transform: uppercase;
}
/* =========================================
   NAVBAR NOTIFICATION BADGE
========================================= */

.nav-item-with-badge {
    position: relative;
}

.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 5px;

    background: #e53935;
    color: white;

    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
/* =========================================
   NAVBAR NOTIFICATION BADGE
========================================= */

.nav-item-with-badge {
    position: relative;
}

.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 5px;

    background: #e53935;
    color: white;

    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
/* =========================================
   MAIN CONTENT
========================================= */

.main-content {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 25px;
}

/* =========================================
   STATS CARDS
========================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #111827;
    border: 1px solid #1f2937;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.stat-card h3 {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #f8fafc;
}

.stat-badge-sub {
    font-size: 11px;
    color: #64748b;
    margin-top: 5px;
    display: inline-block;
}

.text-green {
    color: #22c55e !important;
}

.text-blue {
    color: #38bdf8 !important;
}

.text-purple {
    color: #a855f7 !important;
}

/* =========================================
   CONTENT GRID
========================================= */

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.main-column,
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   PRO CARDS
========================================= */

.pro-card {
    background-color: #111827;
    border: 1px solid #1f2937;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #1f2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 15px;
    font-weight: 600;
    color: #f8fafc;
}

.card-body {
    padding: 20px;
}

/* =========================
   PARTNER PROFILE AVATAR
========================= */
.profile-avatar-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-avatar {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #38bdf8;
    background-color: #1e293b;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}

.avatar-badge {
    font-size: 12px;
    font-weight: 600;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* =========================================
   PARTNER VIDEO UPLOAD SECTION
========================================= */

.profile-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 20px 0;
}

.video-upload-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-label {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.upload-desc {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 5px;
}

.video-upload-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-file-upload {
    display: block;
    background: #0b0f19;
    border: 1px dashed #374151;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.custom-file-upload:hover {
    border-color: #38bdf8;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.05);
}

.custom-file-upload input[type="file"] {
    display: none;
}

.upload-btn {
    width: 100%;
    text-align: center;
}

/* =========================================
   BADGES & PILLS
========================================= */

.badge-red {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.specs-pill-group {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.pill {
    background: #1f2937;
    color: #cbd5e1;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #374151;
}

/* =========================================
   BUTTONS
========================================= */

.pro-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 13px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.pro-btn:hover {
    transform: translateY(-1px);
}

.pro-btn.primary {
    background-color: #ef4444;
    color: #ffffff;
}

.pro-btn.primary:hover {
    background-color: #dc2626;
}

.pro-btn.secondary {
    background-color: #1f2937;
    color: #f8fafc;
    border: 1px solid #374151;
}

.pro-btn.secondary:hover {
    background-color: #374151;
}

/* =========================================
   TABLES
========================================= */

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.pro-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.pro-table th {
    color: #94a3b8;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    padding: 10px 15px;
    border-bottom: 1px solid #1f2937;
}

.pro-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #1f2937;
    color: #e2e8f0;
}

.pro-table tr:hover td {
    background: rgba(31, 41, 55, 0.35);
}

.status-pill {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* =========================================
   QUICK ACTIONS & VIDEOS
========================================= */

.action-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-item {
    background: #1f2937;
    border: 1px solid #374151;
    color: #f8fafc;
    padding: 11px 15px;
    border-radius: 6px;
    text-align: left;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-item:hover {
    background: #374151;
    border-color: #4b5563;
}

.video-container-pro {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #1f2937;
}

/* =========================================
   AXIS CUSTOMER CHAT WIDGET
========================================= */

.axis-chat-toggle {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 2000;

    background: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 30px;

    padding: 13px 20px;
    display: flex;
    align-items: center;
    gap: 99px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);

    transition: all 0.2s ease;
}

.axis-chat-toggle:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* =========================================
   CUSTOMER CHAT WINDOW
========================================= */

.axis-chat-widget {
    position: fixed;
    right: 25px;
    bottom: 85px;
    z-index: 1999;

    width: 360px;
    max-width: calc(100vw - 30px);

    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);

    display: none;
    flex-direction: column;
}

.axis-chat-widget.open {
    display: flex;
}

/* Chat Header */

.axis-chat-header {
    background: #172033;
    padding: 15px 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #1f2937;
}

.axis-chat-header strong {
    display: block;
    color: #f8fafc;
    font-size: 14px;
}

.axis-chat-header small {
    display: block;
    color: #64748b;
    font-size: 11px;
    margin-top: 2px;
}

.axis-chat-header button {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
}

.axis-chat-header button:hover {
    color: #ffffff;
}

/* =========================================
   CUSTOMER CHAT MESSAGES
========================================= */

.axis-chat-messages {
    height: 300px;
    padding: 15px;

    overflow-y: auto;

    display: flex;
    flex-direction: column;
    gap: 10px;

    scrollbar-width: thin;
    scrollbar-color: #374151 transparent;
}

.axis-chat-message {
    max-width: 85%;
    padding: 10px 12px;
    border-radius: 10px;

    font-size: 13px;
    line-height: 1.5;

    word-wrap: break-word;
    overflow-wrap: break-word;
}

.axis-chat-message.staff {
    align-self: flex-start;
    background: #1f2937;
    color: #e2e8f0;
    border: 1px solid #374151;
}

.axis-chat-message.customer {
    align-self: flex-end;
    background: #2563eb;
    color: #ffffff;
}

/* =========================================
   CUSTOMER CHAT INPUT
========================================= */

.axis-chat-form {
    display: flex;
    gap: 8px;

    padding: 12px;

    border-top: 1px solid #1f2937;
}

.axis-chat-form input {
    flex: 1;
    min-width: 0;

    background: #0b0f19;
    color: #f8fafc;

    border: 1px solid #374151;
    border-radius: 6px;

    padding: 9px 11px;

    font-family: inherit;
    font-size: 12px;
}

.axis-chat-form input:focus {
    outline: none;
    border-color: #38bdf8;
}

.axis-chat-form button {
    background: #ef4444;
    color: #ffffff;

    border: none;
    border-radius: 6px;

    padding: 0 14px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition: background 0.2s ease;
}

.axis-chat-form button:hover {
    background: #dc2626;
}

/* =========================================
   ADMIN CHAT PAGE
========================================= */

.admin-chat-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    min-height: 500px;
}

/* Customer List */

.admin-chat-customers {
    border-right: 1px solid #1f2937;
    padding-right: 15px;
}

.admin-chat-section-title {
    font-size: 12px;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.chat-customer {
    width: 100%;
    text-align: left;

    padding: 12px;
    margin-bottom: 8px;

    border-radius: 7px;
    border: 1px solid #374151;

    background: #1f2937;
    color: #f8fafc;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

.chat-customer:hover {
    background: #263244;
    border-color: #4b5563;
    transform: translateY(-1px);
}

.chat-customer.active {
    background: #172033;
    border-color: #38bdf8;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12);
}

.chat-customer strong {
    font-size: 13px;
    color: #f8fafc;
    word-break: break-word;
}

.chat-customer span {
    font-size: 11px;
    color: #64748b;
}

/* Admin Selected Customer */

#selected-customer {
    margin-bottom: 15px;
    color: #38bdf8;
    font-weight: 600;
    font-size: 14px;
}

/* Admin Chat Message Area */

#chat-messages {
    height: 350px;
    overflow-y: auto;

    background: #0b0f19;
    border: 1px solid #1f2937;
    border-radius: 8px;

    padding: 15px;

    scrollbar-width: thin;
    scrollbar-color: #374151 transparent;
}

/* Admin Chat Bubbles */

#chat-messages .chat-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 10px;

    font-size: 13px;
    line-height: 1.5;

    word-wrap: break-word;
    overflow-wrap: break-word;
}

#chat-messages .chat-message.customer {
    background: #1f2937;
    color: #e2e8f0;
    border: 1px solid #374151;
    margin-right: auto;
}

#chat-messages .chat-message.staff,
#chat-messages .chat-message.admin {
    background: #2563eb;
    color: #ffffff;
    margin-left: auto;
}

/* Admin Chat Reply Form */

#admin-chat-form {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

#admin-chat-form input {
    flex: 1;
    min-width: 0;

    background: #0b0f19;
    border: 1px solid #374151;

    color: #ffffff;

    border-radius: 6px;
    padding: 12px;

    font-family: inherit;
    font-size: 13px;
}

#admin-chat-form input:focus {
    outline: none;
    border-color: #38bdf8;
}

#admin-chat-form input::placeholder {
    color: #64748b;
}

#admin-chat-form button {
    flex-shrink: 0;
}

/* =========================================
   AXIS CONTACT SECTION
========================================= */

.axis-contact-section {
    max-width: 1400px;
    margin: 10px auto 80px;
    padding: 0 25px;
}

.axis-contact-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 10px;

    padding: 25px;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.axis-contact-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 25px;
}

.axis-contact-icon {
    font-size: 25px;
}

.axis-contact-heading h2 {
    color: #f8fafc;
    font-size: 18px;
    margin-bottom: 3px;
}

.axis-contact-heading p {
    color: #64748b;
    font-size: 12px;
}

.axis-contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.axis-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.axis-form-group label {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.axis-form-group input,
.axis-form-group textarea {
    width: 100%;

    background: #0b0f19;
    color: #f8fafc;

    border: 1px solid #374151;
    border-radius: 6px;

    padding: 10px 12px;

    font-family: inherit;
    font-size: 13px;

    resize: vertical;
}

.axis-form-group input:focus,
.axis-form-group textarea:focus {
    outline: none;
    border-color: #38bdf8;
}

.axis-form-group input::placeholder,
.axis-form-group textarea::placeholder {
    color: #64748b;
}

.axis-contact-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

#axis-contact-status {
    color: #22c55e;
    font-size: 12px;
}

/* =========================================
   FORM ELEMENTS
========================================= */

input,
textarea,
select,
button {
    font-family: inherit;
}

select {
    background: #0b0f19;
    color: #f8fafc;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 10px 12px;
}

select:focus {
    outline: none;
    border-color: #38bdf8;
}

/* =========================================
   SCROLLBARS
========================================= */

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: #0b0f19;
}

::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .navbar {
        justify-content: flex-start;
        padding: 10px 15px;
        gap: 15px;
    }

    .nav-menu {
        overflow-x: auto;
    }

    .navbar a {
        padding: 7px 8px;
        font-size: 12px;
    }

    .nav-divider {
        margin: 0 2px;
    }

    .main-content {
        margin: 20px auto;
        padding: 0 15px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .admin-chat-layout {
        grid-template-columns: 1fr;
    }

    .admin-chat-customers {
        border-right: none;
        border-bottom: 1px solid #1f2937;
        padding-right: 0;
        padding-bottom: 15px;
    }

    #chat-messages {
        height: 320px;
    }
}

@media (max-width: 600px) {

    .axis-chat-toggle {
        right: 15px;
        bottom: 15px;
    }

    .axis-chat-widget {
        right: 15px;
        bottom: 75px;
        width: calc(100vw - 30px);
    }

    .axis-chat-messages {
        height: 280px;
    }

    .axis-form-row {
        grid-template-columns: 1fr;
    }

    .axis-contact-section {
        padding: 0 15px;
    }

    .axis-contact-card {
        padding: 18px;
    }

    .axis-contact-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .axis-contact-footer .pro-btn {
        width: 100%;
    }

    .admin-chat-layout {
        gap: 15px;
    }

    #admin-chat-form {
        flex-direction: column;
    }

    #admin-chat-form button {
        width: 100%;
        padding: 10px;
    }

    #chat-messages {
        height: 300px;
    }

    #chat-messages .chat-message {
        max-width: 90%;
    }
}

/* =========================================
   VERY SMALL SCREENS
========================================= */

@media (max-width: 420px) {

    .brand-text {
        font-size: 16px;
    }

    .navbar {
        gap: 10px;
    }

    .navbar a {
        font-size: 11px;
        padding: 6px;
    }

    .card-body {
        padding: 15px;
    }

    .axis-chat-widget {
        right: 10px;
        bottom: 70px;
        width: calc(100vw - 20px);
    }

    .axis-chat-toggle {
        right: 10px;
        bottom: 10px;
    }
}