@charset "UTF-8";

:root {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --background-light: #232131;
    --background-white: #ffffff;
    --text-primary: #6254fe;
}

.container {
    max-width: 1400px;
    padding: 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    color: white;
    box-shadow: 0 5px 15px rgba(99,102,241,0.3);
}

.primary-btn-outline {
    background: transparent;
    border: 2px solid #6366f1;
    padding: 1rem 2rem;
    border-radius: 8px;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
}

.primary-btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
    color: white;
    box-shadow: 0 5px 15px rgba(99,102,241,0.2);
}

.nav-tabs {
    border-bottom: 2px solid #6254fe;
    gap: 1rem;
}

.nav-tabs .nav-link {
    border: none;
    color: #64748b;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 9px;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    border-bottom: 0px solid var(--primary-color);
}

.nav-tabs .nav-link:hover {
    background: rgba(99, 102, 241, 0.05);
}

.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    color: #ffffff;
}

.table th {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
}

.table td {
    padding: 0.75rem 1.5rem;
    vertical-align: middle;
}

.password-blur {
    filter: blur(5px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.password-blur:hover {
    filter: blur(0);
    transform: scale(1.05);
}

.os-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    grid-auto-rows: 1fr;
    gap: 1rem;
    margin: 0 -0.5rem;
}

.os-card {
    background: #1a1a2e;
    border: 2px solid #2d2d48;
    border-radius: 8px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.os-card:hover:not(.disabled) {
    transform: translateY(-3px);
    border-color: #6366f1;
    box-shadow: 0 5px 15px rgba(98,84,254,0.2);
}

.os-card.active {
    border-color: #6366f1;
    background: rgba(98,84,254,0.1);
}

.os-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    grid-auto-rows: 1fr;
    gap: 1rem;
    margin: 0 -0.5rem;
}

.payment-card {
    background: #1a1a2e;
    border: 2px solid #2d2d48;
    border-radius: 8px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    text-align: center;
}

.payment-card:hover:not(.disabled) {
    transform: translateY(-3px);
    border-color: #6366f1;
    box-shadow: 0 5px 15px rgba(98,84,254,0.2);
}

.payment-card.active {
    border-color: #6366f1;
    background: rgba(98,84,254,0.1);
}

.payment-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.payment-image {
    text-align: center;
    margin-bottom: 0.75rem;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.payment-image svg {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 40px;
    object-fit: contain;
}

.payment-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f8f9fa;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.payment-fee {
    font-size: 0.75rem;
    color: #ffc107;
    margin-top: auto;
}

.os-image {
    text-align: center;
    margin-bottom: 0.75rem;
}

.os-image img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.os-title {
    text-align: center;
    color: #f8f9fa;
    font-size: 0.95rem;
    margin: 0;
}

.os-lock {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

@keyframes ripple {
    0% {
        width: 5px;
        height: 5px;
        opacity: 1;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

.progress {
    height: 14px;
    border-radius: 7px;
    background: #1d1b28;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

.progress-bar {
    background: linear-gradient(
            90deg,
            var(--primary-color),
            var(--secondary-color),
            var(--primary-color)
    );
    border-radius: 7px;
    position: relative;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gradient-flow 3s linear infinite;
}

.password-toggle {
    cursor: pointer;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.invalid-feedback {
    font-size: 0.85rem;
    color: var(--danger-color);
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.show-error {
    opacity: 1;
    transform: translateY(0);
}

.password-blur {
    filter: blur(5px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.password-blur:hover {
    filter: blur(0);
    transform: scale(1.05);
}

.blur {
    filter: blur(5px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.blur:hover {
    filter: blur(0);
    transform: scale(1.05);
}

.pulse-green {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.pulse-orange {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.5);
    animation: pulse-orange 1.5s infinite;
}

@keyframes pulse-orange {
    0% {box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.5);}
    70% {box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);}
    100% {box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);}
}

.pulse-red {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% {box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);}
    70% {box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);}
    100% {box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);}
}

.form-group {
    margin-bottom: 1.25rem;
}

.input-group-alternative {
    border-radius: 8px;
    box-shadow: none;
}

.input-group-text {
    background: #1a1a2e;
    border: 2px solid #2d2d48;
    color: #adb5bd;
}

#apitokenField, #jsonContent, #authCodeField {
    background-color: #1d1b28;
    border: 1px solid #6154fc;
    color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
}

.authcode-field {
    background-color: #1d1b28;
    border: 1px solid #6154fc;
    color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
}

.form-control-locked {
    background-color: #1d1b28 !important;
    border: 1px solid #6154fc !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
}
.form-control-locked:focus {
    background-color: #1d1b28 !important;
    border: 1px solid #6154fc !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

#sshkeyField {
    background-color: #1d1b28;
    border: 1px solid #6154fc;
    color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
}

#FriendUuidField {
    background-color: #1d1b28;
    border: 1px solid #6154fc;
    color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
}

.modern-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: none;
    padding: 0.5rem 0;
}

.modern-tabs .nav-link {
    background: #1a1a2e;
    color: #adb5bd;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease, color 0.3s ease;
    border: 2px solid transparent;
    font-weight: 500;
}

.modern-tabs .nav-link:not(.active):hover {
    background: #2d2d48;
    color: #f8f9fa;
}

.modern-tabs .nav-link.active {
    background: #6366f1;
    color: #f8f9fa;
    border-color: #6366f1;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.modern-tabs .nav-link.active:hover {
    color: #f8f9fa;
    background: #6366f1;
}

/* Responsiv */
@media (max-width: 600px) {
    .modern-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

.table {
    border-radius: 0;
}

.table-container {
    max-height: 480px;
    overflow-y: auto;
    border-radius: 0px;
}

.table-container:not(.has-scrollbar) {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.table thead {
    background: var(--background-light);
    color: white;
}

.table th {
    border-bottom: 2px solid var(--secondary-color);
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.table td {
    padding: 0.75rem 1.5rem;
    vertical-align: middle;
    background: var(--background-light);
    border-color: #2d2b3a;
}

.table tr:hover td {
    background: #2d2b3a;
}

.stat-icon {
    width: 45px;
    height: 45px;
    background: rgba(98, 84, 254, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-outer-wrapper {
    position: relative;
    max-height: 480px;
    overflow-y: auto;
}

.timeline-container {
    position: relative;
    padding: 20px 0;
    min-height: 100%;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: calc(100% - 40px);
    width: 2px;
    background: var(--primary-color);
    opacity: 0.3;
    top: 20px;
    z-index: 0;
}

.timeline-item {
    position: relative;
    width: 95%;
    margin: 0 auto 20px;
    padding: 15px 0;
    z-index: 1;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 2px solid var(--background-light);
    z-index: 1;
    top: 24px;
}

.timeline-content {
    position: relative;
    background: #2d2b3a;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.2s ease;
    border: 1px solid #3a3750;
    width: calc(50% - 30px);
    margin: 0 15px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-date {
    font-size: 0.8em;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.timeline-title {
    font-size: 0.95em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-title i {
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .timeline-container::before {
        left: 20px;
        height: calc(100% - 40px);
    }

    .timeline-item {
        width: 100%;
        padding-left: 35px;
    }

    .timeline-item::before {
        left: 20px;
    }

    .timeline-content {
        width: 100%;
        margin: 0 !important;
    }
}

.service-container {
    height: calc(100% - 20px);
    display: flex;
    flex-direction: column;
}

.service-container .card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-container .card-body {
    flex: 1;
    overflow: hidden;
}

.checkbox {
    display: inline-block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox span {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox:hover input ~ span {
    background-color: #ccc;
}

.checkbox input:checked ~ span {
    background-color: #007bff;
}

.checkbox span:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox input:checked ~ span:after {
    display: block;
}

.checkbox span:after {
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.form-control {
    display: block;
    width: 100%;
    min-height: calc(1.5em + 1.3rem + 2px);
    height: auto;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #f8f9fa;
    background-color: #1a1a2e;
    background-clip: padding-box;
    border: 2px solid #2d2d48;
    border-radius: 8px;
    box-shadow: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical;
    overflow: auto;
}

@media (prefers-reduced-motion: reduce) {
    .form-control {
        transition: none;
    }
}

.form-control::-ms-expand {
    background-color: transparent;
    border: 0;
}

.form-control:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #f8f9fa;
}

.form-control:focus {
    color: #f8f9fa;
    background-color: #1a1a2e;
    border-color: #6366f1;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-control::-webkit-input-placeholder {
    color: #f8f9fa;
    opacity: 0.7;
}

.form-control::-moz-placeholder {
    color: #f8f9fa;
    opacity: 0.7;
}

.form-control:-ms-input-placeholder {
    color: #f8f9fa;
    opacity: 0.7;
}

.form-control::-ms-input-placeholder {
    color: #f8f9fa;
    opacity: 0.7;
}

.form-control::placeholder {
    color: #f8f9fa;
    opacity: 0.7;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #252525;
    opacity: 1;
}

input[type="date"].form-control,
input[type="time"].form-control,
input[type="datetime-local"].form-control,
input[type="month"].form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select.form-control:focus::-ms-value {
    color: #f8f9fa;
    background-color: #1a1a2e;
}

.form-control-file,
.form-control-range {
    display: block;
    width: 100%;
}

.col-form-label {
    padding-top: calc(0.75rem + 2px);
    padding-bottom: calc(0.75rem + 2px);
    margin-bottom: 0;
    font-size: inherit;
    line-height: 1.5;
}

.col-form-label-lg {
    padding-top: calc(0.825rem + 2px);
    padding-bottom: calc(0.825rem + 2px);
    font-size: 1.08rem;
    line-height: 1.5;
}

.col-form-label-sm {
    padding-top: calc(0.55rem + 2px);
    padding-bottom: calc(0.55rem + 2px);
    font-size: 0.925rem;
    line-height: 1.35;
}

.form-control-plaintext {
    display: block;
    width: 100%;
    padding: 0.75rem 0;
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #f8f9fa;
    background-color: transparent;
    border: solid transparent;
    border-width: 2px 0;
}

.form-control-plaintext.form-control-sm,
.form-control-plaintext.form-control-lg {
    padding-right: 0;
    padding-left: 0;
}

.form-control-sm {
    min-height: calc(1.35em + 1.1rem + 2px);
    padding: 0.55rem 0.75rem;
    font-size: 0.925rem;
    line-height: 1.35;
    border-radius: 6px;
}

.form-control-lg {
    min-height: calc(1.5em + 1.65rem + 2px);
    padding: 0.825rem 1.42rem;
    font-size: 1.08rem;
    line-height: 1.5;
    border-radius: 8px;
}

select.form-control[size],
select.form-control[multiple] {
    height: auto;
}

textarea.form-control {
    height: auto;
    min-height: 100px;
}