/* ==========================================================================
   1. Reset & Base
   ========================================================================== */
* {
    box-sizing: border-box;
    position: relative;
}

html,
body {
    margin: 0;
    min-height: 100vh;
    font-size: 100%;
    line-height: 1.4;
    background-color: #191a1e;
    background-image: radial-gradient(
        ellipse at 33% 10%,
        #461616 0%,
        transparent 75%
    );
    background-repeat: no-repeat;
    color: #e8615a;
    font-family: "Rajdhani", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   3. Layout Components
   ========================================================================== */
.app-skeleton {
    padding: 0 1rem;
    height: 100vh;
    min-width: 1024px;
    position: relative;
    z-index: 1;
    background: transparent;
}

.app-container {
    display: grid;
    grid-gap: 1rem;
    grid-template-areas: "a main main main side";
    grid-template-columns: 280px 1fr 1fr 1fr 1fr;
    height: calc(100% - 5.25rem);
}

.app-a { grid-area: a; height: 100%; }
.app-main { grid-area: main; }
.app-b { grid-area: side; }

/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */
.app-header {
    align-items: center;
    display: flex;
    grid-area: header;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem 2rem;
}

.app-header::after {
    background-color: #e8615a;
    box-shadow: 0 0 5px #e8615a;
    bottom: 0;
    content: "";
    height: 2px;
    position: absolute;
    left: 0;
    width: 100%;
}

.app-header__anchor {
    margin-right: auto;
    padding-left: 1rem;
}

.app-header__anchor__text {
    font-family: "VT323", monospace;
    font-size: 1.25rem;
    letter-spacing: 0.035rem;
    text-shadow: -9px -6px 40px currentcolor;
    text-transform: uppercase;
}

/* Navigation */
.nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__link {
    line-height: 1.4rem;
}

.nav__link__element + .nav__link__element {
    margin-left: 0.5rem;
}

.app-header .nav {
    align-items: flex-end;
    display: flex;
    margin-left: auto;
    padding-right: 1rem;
}

.app-header .nav__item + .nav__item {
    margin-left: 3rem;
}

.app-header .nav__link {
    align-items: baseline;
    display: flex;
    text-shadow: -9px -6px 40px currentcolor;
    text-transform: uppercase;
    transition: transform 0.25s;
}

.app-header .nav__link:hover {
    color: #f4908b;
}

.app-header .nav__link.nav__link--active {
    color: #2be4ea;
    font-size: 1.25rem;
    transform: none;
}

/* ==========================================================================
   5. Buttons & Form Controls
   ========================================================================== */
/* Button Base */
/* Reset default button styles */
.button {
    appearance: none;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-family: "Rajdhani", sans-serif;
    position: relative;
}

/* Button Primary - Menggunakan !important untuk mengatasi konflik */
.button--primary {
    background-color: #2b4242 !important;
    color: #2be4ea !important;
    border: 2px solid #2be4ea !important;
    padding: 0.75rem 2rem !important;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    position: relative;
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - 1rem),
        calc(100% - 1rem) 100%,
        0 100%
    ) !important;
    box-shadow: 0 0 20px #2be4ea;
}

/* Fix notch untuk primary button */
.button--primary::before {
    content: '';
    position: absolute;
    right: -6px;
    bottom: 5px;
    width: 22.627416px;
    height: 3px;
    background-color: #2be4ea !important;
    transform: rotate(-45deg);
    z-index: 2;
}

/* Hover state */
.button--primary:hover {
    background-color: #530505 !important;
    border-color: #295459 !important;
    color: #2be4ea !important;
    box-shadow: 0 0 30px #2be4ea;
}

.button--primary:hover::before {
    background-color: #295459 !important;
}

/* Container styles */
.button-toolbar {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* Remove any conflicting styles */


/* Reset size variants that might conflict */
.button--size-lg,
.button--size-xl {
    padding: 0.75rem 2rem !important;
}

/* Action Buttons in Table */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}
/* Form Controls */
.form-control {
    background-color: #1e181e;
    border: 1px solid #9c3230;
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - 1rem + 2px),
        calc(100% - 1rem + 2px) 100%,
        0 100%
    );
   
}

.form-control::before {
    background-color: #9c3230;
    bottom: 5px;
    content: "";
    display: block;
    height: 3px;
    position: absolute;
    right: -6px;
    top: auto;
    transform: rotate(-45deg);
    width: 22.627416px;
    z-index: 100;
}

.form-control input,
.form-control textarea {
    background-color: transparent;
    border: 0;
    box-shadow: none;
    color: #e8615a;
    font-family: "Rajdhani", sans-serif;
    font-size: 1rem;
    letter-spacing: 0.045em;
    outline: none;
    padding: 0.5rem;
    resize: none;
    width: 100%;
}

/* ==========================================================================
   6. Panel Components
   ========================================================================== */
.pad {
    background-color: #1e181e;
    border: 0.5px solid #9c3230;
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - 1rem + 2px),
        calc(100% - 1rem + 2px) 100%,
        0 100%
    );
    position: relative;
    padding: 1rem;
}

.pad::before {
    background-color: #9c3230;
    bottom: 5px;
    content: "";
    display: block;
    height: 3px;
    position: absolute;
    right: -6px;
    top: auto;
    transform: rotate(-45deg);
    width: 22.627416px;
    z-index: 100;
}

/* Styling untuk header segment */
.segment-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Untuk vertical centering */
    margin-bottom: 1rem;
    min-height: 3.5rem;
    background-color: #1e181e;
    border: 2px solid #9c3230;
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - 1rem + 2px),
        calc(100% - 1rem + 2px) 100%,
        0 100%
    );

    position: relative;
}

.segment-topbar::before {
    background-color: #9c3230;
    bottom: 5px;
    content: "";
    display: block;
    height: 3px;
    position: absolute;
    right: -6px;
    top: auto;
    transform: rotate(-45deg);
    width: 22.627416px;
    z-index: 100;
}

.segment-topbar::after {
    background-color: #e8615a;
    box-shadow: 0 0 5px #e8615a;
    bottom: 0;
    content: "";
    height: 1px;
    position: absolute;
    left: 0;
    width: 100%;
}

.segment-topbar__header {
    padding: 0.5rem 0.5rem;
    padding-top: 0;
}

.segment-topbar__overline {
    font-family: "VT323", monospace;
}

.segment-topbar__title {
    letter-spacing: 0.035em;
    text-shadow: -9px -6px 40px currentcolor;
    text-transform: uppercase;
    font-size: 1.5rem;
    padding-left: 2rem;
   
}



/* ==========================================================================
   7. Utilities & Effects
   ========================================================================== */
#vanta-background {
    position: fixed;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
}

.badge {
    border: 1.5px solid #fed33f;
    border-radius: 3px;
    color: #fed33f;
    display: inline-block;
    font-size: 0.92rem;
    font-weight: normal;
    line-height: 1;
    padding: 0.15em 0.34em;
    vertical-align: middle;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(232, 97, 90, 0.5);
    border-radius: 3px;
}

/* Data Table Styling */
.data-table-container {
    margin-top: 2rem;
    background-color: #1e181e;
    border: 2px solid #9c3230;
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - 1rem + 2px),
        calc(100% - 1rem + 2px) 100%,
        0 100%
    );
    position: relative;
}

.data-table-container::before {
    background-color: #9c3230;
    bottom: 5px;
    content: "";
    display: block;
    height: 3px;
    position: absolute;
    right: -6px;
    top: auto;
    transform: rotate(-45deg);
    width: 22.627416px;
    z-index: 100;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    background-color: #1e181e;
    color: #2be4ea;
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #5e2122;
}

.data-table td {
    padding: 1rem;
    color: #fed33f;
    border-bottom: 1px solid #5e2122;
}

.data-table tr:hover {
    background-color: rgba(156, 50, 48, 0.2);
}

/* Add to existing CSS */
.data-table {
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th,
.data-table td {
    border-right: 1px solid rgba(232, 97, 90, 0.2);
    padding: 1rem;
}

.data-table th:last-child,
.data-table td:last-child {
    border-right: none;
}

.data-table td {
    border-bottom: 1px solid rgba(232, 97, 90, 0.2);
}

/* Style for positive/negative values */
.positive-value {
    color: #4CAF50;
}

.negative-value {
    color: #e8615a;
}

/* Column alignments */
.data-table th,
.data-table td {
    text-align: center;
}

.data-table th:first-child,
.data-table td:first-child {
    text-align: left;
}

.data-table th:last-child,
.data-table td:last-child {
    text-align: right;
}



/* Channel Feed */
.channel-feed {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.channel-feed__body {
    flex-grow: 1;
}

.channel-message-form {
    align-items: flex-start;
    display: flex;
    padding-bottom: 1rem;
}

.channel-message-form .form-group {
    flex: 1;
}

.channel-message-form .form-footer {
    margin-left: 1rem;
    margin-top: 1.42rem;
}

.channel-message-form .form-control {
    width: 100%;
}

/* Text Elements */
.text-heading1,
.text-heading2,
.text-heading3,
.text-heading4,
.text-heading5,
.text-heading6,
.text-paragraph1 {
    margin: 0;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons .button {
    padding: 0.45rem 1rem;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 3px;
    text-align: center;
}

.alert-error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid #f44336;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

/* Popup Modal */
.popup-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1e181e;
    padding: 2rem;
    z-index: 1000;
    border: 2px solid #2be4ea;
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - 1rem),
        calc(100% - 1rem) 100%,
        0 100%
    );
    box-shadow: 0 0 20px #2be4ea;
}

.popup-modal.success {
    border-color: #2be4ea;
    box-shadow: 0 0 20px #2be4ea;
}

.popup-modal.error {
    border-color: #e8615a;
    box-shadow: 0 0 20px #e8615a;
}

.popup-modal__content {
    color: #fed33f;
    text-align: center;
    margin-bottom: 1.5rem;
}

.popup-modal__button {
    text-align: center;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}






/* Add this at the beginning of your existing CSS */
:root {
    --primary-blue: #00f3ff;
    --secondary-blue: #0066ff;
    --cyber-glow: 0 0 10px var(--primary-blue);
    --dark-bg: #0a0a20;
    --panel-bg: rgba(10, 10, 32, 0.9);
    --accent-color: #ff0066;
}

/* Add these new styles for the animated arrow background */
.character-display {
    position: relative;
    overflow: hidden;
}

.arrow-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, 
        transparent 0%,
        rgba(0, 243, 255, 0.1) 50%,
        transparent 100%
    );
    animation: arrowFlow 2s infinite;
    pointer-events: none;
}

@keyframes arrowFlow {
    0% { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}


