/* style.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1f1c2c 0%, #928dab 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
}

/* Background animated elements for premium aesthetic */
body::before, body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff007f, #7f00ff);
    filter: blur(80px);
    z-index: 0;
    animation: float 10s infinite alternate ease-in-out;
    opacity: 0.6;
}

body::before {
    top: -100px;
    left: -100px;
}

body::after {
    bottom: -100px;
    right: -100px;
    background: linear-gradient(45deg, #00f2fe, #4facfe);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.2); }
}

.glass-container {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    to { transform: translateY(0); opacity: 1; }
}

h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 1px;
    background: linear-gradient(to right, #ffffff, #cceaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p.subtitle, p {
    font-weight: 300;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

input[type="password"] {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s;
    outline: none;
    letter-spacing: 2px;
}

input[type="password"]::placeholder {
    letter-spacing: normal;
    color: rgba(255, 255, 255, 0.3);
}

input[type="password"]:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: #00f2fe;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 114, 255, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0, 114, 255, 0.5);
    background: linear-gradient(45deg, #0072ff, #00c6ff);
}

.error-msg {
    background: rgba(255, 71, 87, 0.2);
    color: #ffcccc;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.project-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

select {
    flex: 1;
    min-width: 0;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position-x: calc(100% - 15px);
    background-position-y: center;
}

select:focus, select:hover {
    background-color: rgba(0, 0, 0, 0.6);
    border-color: #00f2fe;
}

select option {
    background: #1f1c2c;
    color: #fff;
    padding: 10px;
}

#goBtn, #goFavBtn {
    width: auto;
    flex: 0 0 90px;
}

.logout-link {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    transition: 0.3s;
    display: inline-block;
    padding: 5px;
}

.logout-link:hover {
    color: #ff4757;
}

/* New Favorites Additions */
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.favorite-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.settings-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 20;
}

.settings-btn:hover {
    color: #fff;
    transform: rotate(45deg);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-inner {
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(20, 18, 28, 0.95);
    position: relative;
    padding: 30px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover {
    color: #ff4757;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    transition: 0.3s;
    font-weight: 600;
}

.tab-btn.active {
    color: #fff;
    border-bottom: 2px solid #00f2fe;
}

.tab-btn:hover:not(.active) {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.tab-content {
    display: none;
    text-align: left;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden {
    display: none !important;
}

/* Forms */
input[type="text"], input[type="url"], input[type="hidden"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
}

input[type="hidden"] {
    display: none;
}

input[type="text"]:focus, input[type="url"]:focus {
    border-color: #00f2fe;
    background: rgba(0, 0, 0, 0.6);
}

label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.categories-checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    margin-top: 5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: 0.3s;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.1);
}

.checkbox-label input[type="checkbox"] {
    accent-color: #00f2fe;
}

.separator {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

/* Lists */
.item-list {
    list-style: none;
    max-height: 250px;
    overflow-y: auto;
}

.item-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.item-list .item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.item-list .item-title {
    font-weight: 600;
}

.item-list .item-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.item-actions {
    display: flex;
    gap: 5px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 5px;
    transition: 0.3s;
    border-radius: 5px;
}

.icon-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.icon-btn.delete:hover {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    transform: none;
}
