/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #090a0f;
    color: #f1f5f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header & Navbar Styling (Modern Glassmorphism) */
.main-header {
    background-color: rgba(68, 66, 66, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 45px;
    padding: 0 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible; /* Memastikan logo besar 80px tampil rapi keluar batas navbar */
}

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-container a {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.logo-img {
    height: 80px; /* Logo fokus besar proporsional */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

/* Navigation Menu */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu ul li a {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-menu ul li a:hover {
    color: #38bdf8;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.nav-user-group {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.nav-logout-link {
    color: #fca5a5 !important;
    font-size: 0.85rem !important;
}

.id-badge {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dropdown Menu Styling (Vertical & Glassmorphism) */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    padding: 6px !important;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(30, 32, 38, 0.92);
    backdrop-filter: blur(12px);
    min-width: 170px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    border-radius: 10px;
    overflow: hidden;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 8px;
    list-style: none;
}

.dropdown-content li {
    width: 100%;
    line-height: 1.35 !important;
}

.dropdown-content li a {
    display: block;
    padding: 8px 12px !important;
    color: #cbd5e1;
    font-size: 0.9rem !important;
    line-height: 1.35 !important;
    white-space: nowrap;
    text-align: left;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.dropdown-content li a:hover {
    background-color: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.dropdown:hover .dropdown-content,
.dropdown.open .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Content Container */
.content-container {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 35px auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Carousel / Image Preview Section (Modern & Rounded) */
.carousel-section {
    position: relative;
    background-color: #12151c;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.carousel-screen {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide.active {
    display: block;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 35px 50px;
    background: linear-gradient(to top, rgba(10, 12, 16, 0.95), rgba(10, 12, 16, 0.5), transparent);
    color: #ffffff;
    z-index: 2;
}

.carousel-slide h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #f8fafc;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.carousel-slide p {
    color: #94a3b8;
    font-size: 1.05rem;
    max-width: 700px;
    line-height: 1.5;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    padding: 3px 8px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 5;
    border-radius: 50%;
}

.carousel-control:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #38bdf8;
}

.carousel-control.prev { left: 20px; }
.carousel-control.next { right: 20px; }

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dot.active {
    width: 24px;
    background-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* Workspace Section */
.workspace-section {
    background-color: #12151c;
    padding: 35px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.info-card h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: #38bdf8;
    font-weight: 600;
}

.info-card p {
    line-height: 1.7;
    color: #94a3b8;
}

/* Tool Calculator Components */
.tool-calculator {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

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

.form-group label {
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 500;
}

.form-group input, .form-group select {
    background-color: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.calc-result-box {
    margin-top: 25px;
    background-color: #0b0f19;
    padding: 22px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid #38bdf8;
}

.calc-result-box h4 {
    color: #38bdf8;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Footer Styling */
.main-footer {
    background-color: #07090e;
    text-align: center;
    padding: 24px;
    font-size: 0.9rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

/* --- Styling Modal Account Mengambang & Toggle --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    color: #fff;
    position: relative;
    animation: fadeInModal 0.3s ease-in-out;
}

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #fff;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #00d2ff;
}

.modal-content .form-group {
    margin-bottom: 15px;
    position: relative;
}

.modal-content .form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #ccc;
}

.modal-content .form-group input {
    width: 100%;
    padding: 10px;
    padding-right: 40px;
    border: 1px solid #444;
    background: #2b2b2b;
    color: #fff;
    border-radius: 5px;
    box-sizing: border-box;
}

.modal-content .form-group input:focus {
    border-color: #00d2ff;
    outline: none;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 32px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #888;
    user-select: none;
}

.modal-content .btn-submit {
    width: 100%;
    padding: 10px;
    background: #00d2ff;
    border: none;
    color: #000;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.modal-content .btn-submit:hover {
    background: #0099cc;
    color: #fff;
}

.switch-text {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #aaa;
}

.switch-text a {
    color: #00d2ff;
    text-decoration: none;
}

.switch-text a:hover {
    text-decoration: underline;
}

/* --- Styling Modal Profil Operator --- */
.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.profile-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d2ff, #0284c7);
    color: #090a0f;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.3);
}

.profile-name {
    font-size: 1.25rem;
    color: #f8fafc;
    margin-top: 4px;
}

.profile-badge {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    font-weight: 600;
}

.profile-details {
    width: 100%;
    margin-top: 12px;
    background: #14171f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.profile-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-label {
    color: #94a3b8;
}

.profile-value {
    color: #f1f5f9;
    font-weight: 500;
    word-break: break-all;
    text-align: right;
}

.btn-logout-modal {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fca5a5;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-logout-modal:hover {
    background: #ef4444;
    color: #ffffff;
}

/* --- Switch Bahasa & Dropdown --- */
.lang-dropdown .lang-dropdown-menu {
    left: auto !important;
    right: 0 !important;
    min-width: 150px !important;
    transform: translateX(-18px) translateY(8px) !important;
}

.lang-dropdown:hover .lang-dropdown-menu,
.lang-dropdown.open .lang-dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(-18px) translateY(0) !important;
}

.lang-dropdown-menu a.active-lang {
    color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.12);
    font-weight: 600;
}