/* Main Styles for Star Citizen Browser */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Bai Jamjuree', sans-serif;
}

/*body {
    background-color: #0f2c3e;
    color: #a8b3bd;
    height: 100vh;
    overflow: hidden;
    border: 1px solid #1f5a7f;
}*/
/* start up effect */
.startup-effect {
  opacity: 0; /* Start fully transparent */
  filter: blur(5px); /* Start blurred and grayscale */
  transition: opacity 0.5s ease, filter 0.8s ease; /* Transition for both effects */
}

/* Final state after the animation */
.startup-effect.active {
  opacity: 1; /* Fully visible */
  filter: blur(0) /* Clear blur and grayscale */
}
/* end  */

/* fadeout for close funtion */
.fade-out {
  opacity: 0;
  transition: opacity 1.2s ease; /* Adjust duration as needed */
}

.close-effect {
    opacity: 0; /* For fade-out */
    filter: grayscale(100%) blur(5px); /* Apply blur and grayscale */
    transition: filter 1.2s ease, opacity 1s ease;/* Transition for both effects */
  }
/* end close */



/* Custom Title Bar */
.custom-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0f2c3e;
    color: #a8b3bd;
    height: 32px;
    padding: 0 10px;
    -webkit-app-region: drag;
    /* Makes the title bar draggable */
    user-select: none;
    border-bottom: 1px solid #1f5a7f;
}

.title-bar-text {
    font-size: 11px;
    font-weight: bold;
}

.title-bar-actions {
    display: flex;
    -webkit-app-region: no-drag;
    /* Makes buttons clickable */
    margin-right: auto;
    margin-left: 20px;
}

.title-bar-action-button {
    /* background: transparent; */
    border: none;
    color: #a8b3bd;
    font-size: 14px;
    width: 30px;
    height: 26px;
    margin-top: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px 4px 0px 0px;

}

.title-bar-action-button:hover {
    background-color: #1f5a7f;
}

.window-controls {
    display: flex;
    -webkit-app-region: no-drag;
    /* Makes buttons clickable */
    position: relative;
    right: -8px;
    overflow: hidden;
}

#close-button {
    border-top-right-radius: 6px;
    font-weight: bold;
}

.window-control-button {
    transform: scale (1.2);
    background: transparent;
    border: none;
    color: #a8b3bd;
    font-size: 18px;
    width: 30px;
    height: 30px;
    margin-left: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px;
    position: relative;
    font-weight: bold;
}

.window-control-button:hover {
    transform: scale (1.3);	
    background-color: #1f5a7f;
    opacity: 100%;
}

#close-button:hover {
    background-color: #e81123;
    color: white;
}

.navigation-bar {
    display: flex;
    background-color: #0f2c3e;
    padding: 0;
    /* Adjust padding */
    /*  border-bottom: 1px solid #1f5a7f; */
    justify-content: flex-start;
    /* Align all items to the left */
    align-items: center;
    /* Center items vertically */
    transition: all 0.3s ease;
    height: 36px;
    /* Default height */
    /*//min-height: 36px;  Ensure it doesn't shrink below this */
    flex-shrink: 0;
    /* Prevent shrinking */
    /*//flex-basis: 36px; Set flex-basis */
    overflow: hidden;
    /* Prevent overflow */
}


.navigation-bar.hidden {
    display: none;
}

.nav-buttons {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.nav-buttons button {
    /* background-color: #0A1E2A; */
    background-color: #0f2c3e;
    color: #66809fb1;
    border: 1px solid #19496700;
    border-radius: 0px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-grow: 0;
    /* Prevent buttons from growing */
    display: flex;
    /* Ensure buttons are flex containers */
    justify-content: center;
    align-items: center;
    transition: 0.5s;
}


.nav-buttons button:hover {
    /*  background-color: #1f5a7f; */
    transition: 0.5s;
}

textarea {
    border: 1px solid #cccccc83;
    /* Default border */
    padding: 10px;
    font-size: 16px;
    transition: outline 0.5s ease;
    /* Smooth transition for outline */
}

textarea:focus {
    outline: 1px solid #ffffff41;
    /* Change this to your desired color */
    outline-offset: 1px;
    /* Optional: space between the outline and the element */
    /* border-color: #a8b3bd; */
    /* Optional: change border color on focus */
    box-shadow: 0 0 4px #87cdf883, 0 0 2px #87cdf881, 0 0 4px #87cdf87c, 0 0 3px #87cdf87e;
}

.address-bar {
    flex-grow: 1;
    display: flex;
}

#url-input {
    flex-grow: 1;
    background-color: #0a1d29;
    color: #a8b3bd;
    border: 1px solid #1f5a7f;
    border-radius: 4px 0 0 4px;
    padding: 0 10px;
    height: 0px;
    font-size: 14px;
}

#go-button {
    background-color: #54adf7;
    color: #0a1d29;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 0 15px;
    height: 36px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#go-button:hover {
    background-color: #7bc0ff;
}

.action-buttons {
    display: flex;
    align-items: center;
    margin-left: 0;
}

.action-buttons button {
    background-color: #0a1d29;
    color: #a8b3bd;
    border: none;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    margin-right: 8px;
    /* Consistent spacing with nav buttons */
    margin-left: 0;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.action-buttons button:hover {
    background-color: #1f5a7f;
}

/* Webview Container */
.webview-container {
    flex-grow: 1;
    position: relative;
}

#webview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        /* Start from 0 opacity */
    }
    to {
        opacity: 1;
        /* End at 1 opacity */
    }
}
@keyframes fadeOut {
    from {
        opacity: 1; /* Start from full opacity */
    }
    to {
        opacity: 0; /* End at 0 opacity */
    }
}
}

.setting-item {
    margin-bottom: 15px;
}

.setting-item label {
    display: block;
    margin-bottom: 5px;
    color: #a8b3bd;
    font-size: 12px;
}

.setting-item input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    background-color: #0a1d29;
    color: #a8b3bd;
    border: 1px solid #1f5a7f;
    border-radius: 4px;
    font-size: 10px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.checkbox-container label {
    font-size: 10px;
}

.size-controls {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.size-controls input[type="range"] {
    flex-grow: 1;
    margin-right: 10px;
    background-color: #0a1d29;
}

.size-controls span {
    margin-right: 10px;
    min-width: 40px;
    font-size: 12px;
}

.size-controls button {
    margin-left: 5px;
    padding: 4px 8px;
    font-size: 12px;
}

.setting-item button {
    background-color: #54adf7;
    color: #0a1d29;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.setting-item button.small-button {
    padding: 6px 12px;
    font-size: 12px;
}

.setting-item button:hover {
    background-color: #7bc0ff;
}

/* Context Menu */
.context-menu {
    background-color: #0a1d29;
    border: 1px solid #1f5a7f;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 150px;
    padding: 5px 0;
    transition: 0.9s;
}

.context-menu-item {
    padding: 8px 15px;
    cursor: pointer;
    color: #a8b3bd;
    transition: background-color 0.2s;
    font-size: 14px;
    transition: 0.9s;
}

.context-menu-item:hover {
    background-color: #1f5a7f;
    transition: 0.9s;
}

.overlay {
    /* for under the menu */
    display: none;
    /* Initially hidden */
    position: fixed;
    top: 32px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 10;
    /* added glass */
    background: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    transition: 2s;
}


/* Custom Menu Bar */
.custom-menu-bar {
    display: none;
    position: absolute;
    /* top: 32px; */
    left: 2px;
    background-color: #0f2c3e;
    border: 1px solid #1f5a7f;
    border-radius: 4px;
    padding: 5px;
    z-index: 1000;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
    user-select: none;
    /* transition with fadein */
    opacity: 0;
    /* Start with 0 opacity */
    animation: fadeIn 0.2s forwards;
    /* Trigger the fade-in animation */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        /* Start from 0 opacity */
    }

    to {
        opacity: 1;
        /* End at 1 opacity */
    }
}


.custom-menu-bar.visible {
    display: flex;
    flex-direction: column;
    transition: 0.5s;
}

.menu-item {
    position: relative;
    margin: 3px 0;
    padding: 5px 10px;
    cursor: pointer;
    color: #a8b3bd;
    border-radius: 2px;
    width: 100px;
}

.menu-item:hover {
    background-color: #1f5a7f;
    transition: 0.5s;
}

.menu-label {
    font-size: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-label::after {
    content: '▶';
    font-size: 10px;
    margin-left: 10px;
    transition: 0.5s;
}

.submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #0a1d29;
    border: 1px solid #1f5a7f;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    min-width: 80px;
    transition: 0.5s;
}

.menu-item:hover .submenu {
    display: block;
    transition: 0.5s;
}

.submenu-item {
    padding: 8px 15px;
    cursor: pointer;
    color: #a8b3bd;
    font-size: 10px;
    white-space: nowrap;
}

.submenu-item:hover {
    background-color: #1f5a7f;
    transition: 0.5s;
}

.submenu-separator {
    height: 1px;
    background-color: #1f5a7f;
    margin: 5px 0;
}



/* Plugin Activation Form - Star Citizen Style */
.activation-form {
    background-color: #112736;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #1f5a7f;
}

.activation-form h4 {
    color: #4CAF50;
    margin-top: 0;
    margin-bottom: 15px;
    font-family: 'Electrolize', sans-serif;
}

.settings-select,
.settings-input {
    background-color: #0a1a24;
    border: 1px solid #1f5a7f;
    color: #e0e0e0;
    padding: 8px 12px;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 10px;
    font-family: 'Electrolize', sans-serif;
}

.settings-button {
    z-index: 1001;
    background-color: #1f5a7f;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Electrolize', sans-serif;
    /* font-weight: bold; */
    transition: background-color 0.3s;
    margin-top: 5px;
}

.settings-button:hover {
    background-color: #2c7cb0;
}

.validation-feedback {
    margin-top: 10px;
    font-size: 12px;
    min-height: 16px;
}

.valid-tier {
    color: #4CAF50;
}

.invalid-tier {
    color: #F44336;
}

.activation-message {
    margin-top: 10px;
    font-size: 14px;
}

.info {
    color: #2196F3;
}

.success {
    color: #4CAF50;
}

.error {
    color: #F44336;
}

.plugin-info {
    margin-top: 15px;
    font-size: 12px;
    color: #a8b3bd;
    font-style: italic;
}

.trial-info {
    background-color: #614700;
    color: #FFC107;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
}

/* Holographic effect for activation code input */
@keyframes holographic {
    0% {
        border-color: #1f5a7f;
    }

    50% {
        border-color: #4CAF50;
    }

    100% {
        border-color: #1f5a7f;
    }
}

.settings-input:focus {
    animation: holographic 2s infinite;
    outline: none;
    box-shadow: 0 0 5px rgba(31, 90, 127, 0.5);
}

/* favorites */

.favorite-icon {
    color: #54adf7;
    margin-right: 5px;
    font-size: 12px;
}

.favorite-title {
    flex-grow: 1;
    cursor: pointer;
    color: #54adf7;
    font-size: 10px;
}

.favorite-title:hover {
    text-decoration: underline;
}

.favorite-title-text {
    display: block;
    font-family: 'Bai Jamjuree', sans-serif !important;
    color: #a8b3bd;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    text-align:  left;
    text-decoration: none !important;
}

.submenu-item.favorite-item {
    display: flex;
    text-align: left;
    padding: 6px 10px;
}

.submenu-item.favorite-item:hover {
    background-color: #1f5a7f;
}

#favorites-list {
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
}

.favorite-item {
    display: flex;
    justify-content: space-between;
    align-items: left;
    padding: 10px;
    border-bottom: 1px solid #1f5a7f;
    padding: 8px 15px;
    text-align: left;
}

.favorite-delete {
    color: #5c1e1e;
    cursor: pointer;
    margin-left: 10px;
    font-size: 12px;
    background-color: #5c1e1e;

}

.favorite-delete:hover {
    color: #5c1e1e;
}

.submenu-item.disabled {
    color: #5a6a7a;
    cursor: default;
}

.submenu-item.disabled:hover {
    background-color: transparent;
}

.favorite-item:last-child {
    border-bottom: none;
}

.favorite-link {
    background-color: #0e1a2b;
    color: #ffff;
    text-decoration: none;
    /* Underline to indicate it's a link */
    font-size: 10px;
}

.favorite-link:hover {
    color: #54adf7;
    /* Change color on hover for better UX */
    font-size: 10px;
}
/* favorites end */

/* Quill table styles*/
 /* Add any custom styles for your table here */
        table {
            width: 100%;
            border-collapse: collapse;
        }
        td {
            border: 1px solid #ccc;
            padding: 8px;
        }
        /* Modal styles */
        #tableModal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            justify-content: center;
            align-items: center;
        }
        #modalContent {
            background: white;
            padding: 20px;
            border-radius: 5px;
        }
/* en quill*/

.tooltip-button {
    z-index: 1000;
    position: relative;
    background-color: #1a4c6b;
    color: white;
    border: none;
    padding: 2px;
    border-radius: 8px;
    cursor: pointer;
}

.tooltip-button::after {
    z-index: 1000;
    content: attr(data-tooltip);
    visibility: hidden;
    width: 60px;
    background-color: #1a4c6b;
    font-family: 'Bai Jamjuree', sans-serif !important;
    text-align: center;
    font-size: 9px !important;
    font-weight: 450 !important;
    color: rgba(255, 255, 255, 0.831);
    border-radius: 8px;
    padding: 2px;
    position: absolute;
    bottom: -100%;
    /* Position y of the button */
    left: 100%;
    margin-left: -2px;
    /* Center the tooltip */
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip-button:hover::after {
    visibility: visible;
    opacity: 1;
}

/* end */