/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    color: #f1f5f9;
    overflow-x: hidden;
    position: relative;
}

/* Animated background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(96, 165, 250, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 20%);
    z-index: -2;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.7) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.7) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: -1;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

/* Unique floating elements */
.floating-element {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.2) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.floating-element:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation: float 15s infinite ease-in-out;
}

.floating-element:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: 15%;
    right: 10%;
    animation: float 12s infinite ease-in-out reverse;
}

.floating-element:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 20%;
    animation: float 10s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, 30px); }
    50% { transform: translate(-15px, 25px); }
    75% { transform: translate(10px, -20px); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
}

.logo-display {
    margin-bottom: 1rem;
    position: relative;
}

.logo {
    font-family: 'Source Code Pro', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: #60a5fa;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.7);
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #60a5fa, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.5); }
}

.logo::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #60a5fa, #8b5cf6);
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: right;
    animation: lineAnimation 3s ease-in-out infinite;
}

@keyframes lineAnimation {
    0% { transform: scaleX(0); transform-origin: left; }
    50% { transform: scaleX(1); transform-origin: left; }
    50.1% { transform: scaleX(1); transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; }
}

/* Unique glitch effect for logo */
.logo.glitch {
    position: relative;
}

.logo.glitch::before,
.logo.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.logo.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.logo.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    5% { clip: rect(12px, 9999px, 59px, 0); }
    10% { clip: rect(48px, 9999px, 29px, 0); }
    15% { clip: rect(42px, 9999px, 73px, 0); }
    20% { clip: rect(63px, 9999px, 27px, 0); }
    25% { clip: rect(34px, 9999px, 55px, 0); }
    30% { clip: rect(86px, 9999px, 73px, 0); }
    35% { clip: rect(20px, 9999px, 20px, 0); }
    40% { clip: rect(26px, 9999px, 60px, 0); }
    45% { clip: rect(25px, 9999px, 66px, 0); }
    50% { clip: rect(57px, 9999px, 98px, 0); }
    55% { clip: rect(5px, 9999px, 46px, 0); }
    60% { clip: rect(82px, 9999px, 31px, 0); }
    65% { clip: rect(54px, 9999px, 27px, 0); }
    70% { clip: rect(28px, 9999px, 99px, 0); }
    75% { clip: rect(45px, 9999px, 69px, 0); }
    80% { clip: rect(23px, 9999px, 85px, 0); }
    85% { clip: rect(1px, 9999px, 83px, 0); }
    90% { clip: rect(72px, 9999px, 11px, 0); }
    95% { clip: rect(60px, 9999px, 89px, 0); }
    100% { clip: rect(52px, 9999px, 74px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    5% { clip: rect(52px, 9999px, 74px, 0); }
    10% { clip: rect(79px, 9999px, 85px, 0); }
    15% { clip: rect(75px, 9999px, 5px, 0); }
    20% { clip: rect(67px, 9999px, 61px, 0); }
    25% { clip: rect(14px, 9999px, 79px, 0); }
    30% { clip: rect(1px, 9999px, 66px, 0); }
    35% { clip: rect(86px, 9999px, 30px, 0); }
    40% { clip: rect(23px, 9999px, 98px, 0); }
    45% { clip: rect(85px, 9999px, 72px, 0); }
    50% { clip: rect(71px, 9999px, 75px, 0); }
    55% { clip: rect(2px, 9999px, 48px, 0); }
    60% { clip: rect(30px, 9999px, 16px, 0); }
    65% { clip: rect(59px, 9999px, 50px, 0); }
    70% { clip: rect(41px, 9999px, 62px, 0); }
    75% { clip: rect(2px, 9999px, 82px, 0); }
    80% { clip: rect(47px, 9999px, 73px, 0); }
    85% { clip: rect(3px, 9999px, 27px, 0); }
    90% { clip: rect(26px, 9999px, 55px, 0); }
    95% { clip: rect(42px, 9999px, 97px, 0); }
    100% { clip: rect(38px, 9999px, 49px, 0); }
}

/* Bottom Legal Navigation Styles */
.legal-nav-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1rem 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.legal-link-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: 'Roboto', sans-serif;
    border: 1px solid rgba(96, 165, 250, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.legal-link-bottom::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.2), transparent);
    transition: 0.5s;
}

.legal-link-bottom:hover::before {
    left: 100%;
}

.legal-link-bottom:hover {
    color: #ffffff;
    background: rgba(96, 165, 250, 0.3);
    border-color: #60a5fa;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.4);
    transform: translateY(-3px);
}

.legal-link-bottom i {
    font-size: 1rem;
    color: #60a5fa;
}

/* Search Section */
.search-section {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.search-container {
    width: 100%;
    max-width: 800px;
}

.search-box {
    position: relative;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(30, 41, 59, 0.5);
    padding: .5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(96, 165, 250, 0.4);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.search-box::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #60a5fa, #8b5cf6, #ec4899, #60a5fa);
    z-index: -1;
    border-radius: 18px;
    animation: borderAnimation 3s linear infinite;
    background-size: 300% 300%;
}

@keyframes borderAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.search-box:hover {
    box-shadow: 0 0 40px rgba(96, 165, 250, 0.6);
    transform: translateY(-5px);
}

.search-icon {
    color: #60a5fa;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

#search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.2rem;
    color: #f1f5f9;
    font-weight: 400;
    background: transparent;
    font-family: 'Roboto', sans-serif;
    padding: 0.5rem 0;
}

#search-input::placeholder {
    color: #94a3b8;
}

#search-input:focus {
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.5);
}

.search-engines {
    display: flex;
    gap: 0.8rem;
    margin-left: auto;
}

.engine-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.8);
    color: #93c5fd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.engine-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    transition: all 0.6s;
}

.engine-btn:hover::after {
    transform: rotate(30deg) translate(20%, 20%);
}

.engine-btn:hover {
    background: rgba(51, 65, 85, 0.9);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.6);
    color: #60a5fa;
}

.engine-btn.active {
    background: linear-gradient(135deg, #60a5fa, #8b5cf6);
    color: #ffffff;
    border: 1px solid #60a5fa;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.7);
}

/* Bookmarks Section */
.bookmarks-section {
    flex: 1;
}

.bookmarks-container {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.bookmarks-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #60a5fa, #8b5cf6);
    border-radius: 16px 16px 0 0;
}

.bookmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 0;
}

.bookmark-category {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(96, 165, 250, 0.2);
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.bookmark-category::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #60a5fa, #8b5cf6);
}

.bookmark-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.4);
    border: 1px solid rgba(96, 165, 250, 0.4);
}

.bookmark-category h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}

.bookmark-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
}

.bookmark-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: #f1f5f9;
    transition: all 0.3s ease;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.2);
    font-size: 0.95rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.bookmark-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.2), transparent);
    transition: 0.5s;
}

.bookmark-link:hover::before {
    left: 100%;
}

.bookmark-link:hover {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.3), rgba(139, 92, 246, 0.3));
    transform: translateX(10px);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
    border: 1px solid rgba(96, 165, 250, 0.4);
}

.bookmark-link i {
    font-size: 1.4rem;
    width: 28px;
    text-align: center;
    color: #93c5fd;
    transition: all 0.3s ease;
}

.bookmark-link:hover i {
    color: #60a5fa;
    transform: scale(1.2);
}

.bookmark-link span {
    font-weight: 500;
    font-size: 1.05rem;
}

/* News Section */
.news-section {
    margin-top: 1.5rem;
}

.news-widget {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
    box-shadow: 0 8px 32px rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.news-widget::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #60a5fa, #8b5cf6);
    border-radius: 16px 16px 0 0;
}

.news-widget h3 {
    font-family: 'Roboto', sans-serif;
    color: #60a5fa;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

.news-item {
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(96, 165, 250, 0.2);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.news-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(96, 165, 250, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.news-item:hover::before {
    transform: translateX(100%);
}

.news-item:hover {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(139, 92, 246, 0.2));
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.4);
    border: 1px solid rgba(96, 165, 250, 0.4);
}

.news-image {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.news-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(96, 165, 250, 0.1), rgba(139, 92, 246, 0.1));
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.08);
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-weight: 500;
    color: #f1f5f9;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    line-height: 1.5;
    flex: 1;
}

.news-source {
    font-size: 0.9rem;
    color: #60a5fa;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.news-time {
    font-size: 0.85rem;
    color: #94a3b8;
}

.news-loading {
    text-align: center;
    color: #93c5fd;
    font-style: italic;
    padding: 2.5rem;
    font-family: 'Source Code Pro', monospace;
    font-size: 1.1rem;
}

/* Utility Modules */
.utility-section {
    margin: 1.5rem 0;
}

.utility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Calculator Modal */
.calculator-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.calculator-container {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(96, 165, 250, 0.5);
    box-shadow: 0 8px 32px rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    width: 400px;
    max-width: 90%;
}

.calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calculator-header h3 {
    color: #60a5fa;
    margin: 0;
}

.close-btn {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #f1f5f9;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(96, 165, 250, 0.3);
    transform: scale(1.1);
}

.calculator-display input {
    width: 100%;
    padding: 1rem;
    font-size: 1.5rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 8px;
    color: #f1f5f9;
    text-align: right;
    margin-bottom: 1rem;
    font-family: 'Source Code Pro', monospace;
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.calculator-buttons button {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.6);
    color: #f1f5f9;
    font-size: 1.2rem;
    cursor: pointer;
    border: 1px solid rgba(96, 165, 250, 0.3);
    transition: all 0.2s ease;
}

.calculator-buttons button:hover {
    background: rgba(96, 165, 250, 0.3);
    transform: translateY(-2px);
}

.calculator-buttons button:active {
    transform: translateY(0);
}

/* .calculator-buttons button:nth-child(4n) {
    background: linear-gradient(135deg, #60a5fa, #8b5cf6);
    grid-row: span 2;
} */

/* Converter Styles */
.converter-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.converter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.converter-row input, .converter-row select {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(96, 165, 250, 0.3);
    background: rgba(30, 41, 59, 0.6);
    color: #f1f5f9;
    font-size: 1rem;
    flex: 1;
}

.converter-row select {
    flex: 1;
}

.converter-row span {
    color: #93c5fd;
    font-weight: 500;
}

.converter-row button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #60a5fa, #8b5cf6);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.converter-row button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.5);
}

.converter-result {
    padding: 1rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #f1f5f9;
    font-size: 1.1rem;
    text-align: center;
    min-height: 20px;
    font-weight: 500;
}

/* Notes Styles */
.notes-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notes-content textarea {
    width: 100%;
    height: 200px;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(96, 165, 250, 0.3);
    background: rgba(30, 41, 59, 0.6);
    color: #f1f5f9;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    resize: vertical;
}

.notes-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.notes-buttons button {
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.6);
    color: #f1f5f9;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid rgba(96, 165, 250, 0.3);
    transition: all 0.2s ease;
}

.notes-buttons button:hover {
    background: rgba(96, 165, 250, 0.3);
    transform: translateY(-2px);
}

.notes-buttons button:first-child {
    background: linear-gradient(135deg, #60a5fa, #8b5cf6);
}

.utility-card {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
    box-shadow: 0 8px 32px rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.utility-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #60a5fa, #8b5cf6);
    border-radius: 16px 16px 0 0;
}

.utility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.4);
    border: 1px solid rgba(96, 165, 250, 0.4);
}

.utility-card h3 {
    font-family: 'Roboto', sans-serif;
    color: #60a5fa;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

/* Weather Widget */
.weather-content {
    text-align: center;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.weather-icon {
    font-size: 2.5rem;
    color: #f59e0b;
}

.weather-temp {
    font-size: 2rem;
    font-weight: 600;
    color: #f1f5f9;
}

.weather-location {
    font-size: 1.1rem;
    color: #93c5fd;
    margin-bottom: 0.3rem;
}

.weather-desc {
    font-size: 1rem;
    color: #cbd5e1;
}

/* Clock Widget */
.clock-content {
    text-align: center;
}

.time {
    font-size: 2rem;
    font-weight: 600;
    color: #f1f5f9;
    font-family: 'Source Code Pro', monospace;
    margin-bottom: 0.5rem;
}

.date {
    font-size: 1.1rem;
    color: #93c5fd;
}

/* Tools Widget */
.tools-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
}

/* Map Section */
.maps-section {
    margin: 1.5rem 0;
}

.map-container {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
    box-shadow: 0 8px 32px rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.map-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #60a5fa, #8b5cf6);
    border-radius: 16px 16px 0 0;
}

.map-container h3 {
    font-family: 'Roboto', sans-serif;
    color: #60a5fa;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.map-container iframe {
    border-radius: 12px;
    width: 100%;
    height: 450px;
}

.tool-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: #f1f5f9;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.2);
    transition: all 0.3s ease;
    min-width: 90px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1 1 auto;
}

.tool-link:hover {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.3), rgba(139, 92, 246, 0.3));
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
    border: 1px solid rgba(96, 165, 250, 0.4);
}

.tool-link i {
    font-size: 1.8rem;
    color: #60a5fa;
}

.tool-link span {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

/* Unique loading animation */
.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.2rem;
        gap: 1.5rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .search-box {
        padding: 0.5rem 1rem;
        flex-direction: row;
        gap: 0.8rem;
        border-radius: 12px;
        align-items: center;
    }
    
    .search-engines {
        display: flex;
        gap: 0.5rem;
        margin-left: auto;
    }
    
    #search-input {
        font-size: 1.1rem;
        flex: 1;
        padding: 0.6rem 0;
        min-width: 0;
    }
    
    .search-icon {
        font-size: 1.3rem;
    }
    
    .engine-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        border-radius: 10px;
    }
    
    .bookmarks-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .bookmark-category {
        padding: 1.3rem;
    }
    
    .bookmark-links {
        gap: 0.8rem;
    }
    
    .bookmark-link {
        padding: 0.9rem 1.1rem;
    }
    
    .news-container {
        grid-template-columns: 1fr;
    }
    
    .legal-nav-bottom {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 300px;
    }
    
    .tools-content {
        gap: 0.8rem;
    }
    
    .tool-link {
        padding: 0.8rem;
        min-width: 80px;
        flex: 1 1 auto;
    }
    
    .tool-link i {
        font-size: 1.5rem;
    }
    
    .tool-link span {
        font-size: 0.9rem;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .search-box {
        padding: 0.4rem 0.8rem;
    }
    
    .search-engines {
        display: flex;
        gap: 0.4rem;
    }
    
    .engine-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .news-widget {
        padding: 1.2rem;
    }
    
    .news-container {
        gap: 1rem;
    }
    
    .calculator-container {
        width: 95%;
        padding: 1rem;
    }
    
    .calculator-buttons button {
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    .converter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .converter-row select, .converter-row input {
        width: 100%;
    }
    
    .notes-content textarea {
        height: 150px;
    }
    
    .tools-content {
        gap: 0.6rem;
    }
    
    .tool-link {
        padding: 0.7rem;
        min-width: 70px;
        flex: 1 1 auto;
    }
    
    .tool-link i {
        font-size: 1.3rem;
    }
    
    .tool-link span {
        font-size: 0.8rem;
    }
    
    .map-container iframe {
        height: 250px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bookmark-category,
.news-widget {
    animation: fadeInUp 0.8s ease forwards;
}

.bookmark-category:nth-child(1) { animation-delay: 0.1s; }
.bookmark-category:nth-child(2) { animation-delay: 0.2s; }
.bookmark-category:nth-child(3) { animation-delay: 0.3s; }
.bookmark-category:nth-child(4) { animation-delay: 0.4s; }

/* Terminal effect */
.terminal {
    position: relative;
}

.terminal::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: #60a5fa;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}