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

body {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.85) 0%, rgba(13, 30, 58, 0.85) 100%);
    color: #e6f1ff;
    min-height: 100vh;
    position: relative;
    overflow: auto;
}

/* World Map Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('Equirectangular_projection_SW.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.15;
    z-index: -3;
}

/* Breathing Circles */
.breathing-circle {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.5);
    transform: translate(-50%, -50%);
    animation: breathing 3s infinite ease-in-out;
    z-index: -2;
}

@keyframes breathing {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.2;
    }
}

/* Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    z-index: 10;
}

.login-box {
    background: rgba(10, 25, 47, 0.9);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.login-logo {
    margin-bottom: 30px;
}

.login-logo h2 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, #64ffda, #00a3ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    margin-top: 15px;
}

.login-logo p {
    color: #8892b0;
    font-size: 1.1rem;
    margin-top: 10px;
}

.login-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #64ffda;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(23, 42, 69, 0.8);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 5px;
    color: #e6f1ff;
    font-size: 1rem;
}

.login-form input:focus {
    outline: none;
    border-color: #64ffda;
    box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #00a3ff, #64ffda);
    border: none;
    border-radius: 5px;
    color: #0a192f;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.admin-actions {
    margin-top: 25px;
    border-top: 1px solid rgba(100, 255, 218, 0.2);
    padding-top: 20px;
}

.admin-btn {
    background: rgba(100, 255, 218, 0.1);
    border: none;
    color: #64ffda;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    margin-bottom: 10px;
}

.admin-btn:hover {
    background: rgba(100, 255, 218, 0.2);
}

/* Decorative elements */
.corner-decor {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(100, 255, 218, 0.1);
    z-index: -1;
}

.corner-tl {
    top: -150px;
    left: -150px;
    border-radius: 0 0 100% 0;
    transform: rotate(45deg);
}

.corner-br {
    bottom: -150px;
    right: -150px;
    border-radius: 100% 0 0 0;
    transform: rotate(45deg);
}

header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 30px;
    position: relative;
    border-bottom: 1px solid rgba(100, 255, 218, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 2.5rem;
    color: #64ffda;
    margin-right: 15px;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(to right, #64ffda, #00a3ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.subtitle {
    color: #8892b0;
    font-size: 1.2rem;
    margin-top: 5px;
    font-weight: 300;
}

.config-panel {
    background: rgba(10, 25, 47, 0.9);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin: 0 auto 30px;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
}

.config-title {
    font-size: 1.5rem;
    color: #64ffda;
}

.config-toggle {
    background: rgba(100, 255, 218, 0.1);
    border: none;
    color: #64ffda;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.config-toggle:hover {
    background: rgba(100, 255, 218, 0.2);
}

.config-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feed-group {
    margin-bottom: 15px;
}

.feed-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #64ffda;
}

.feed-input {
    width: 100%;
    padding: 10px 15px;
    background: rgba(23, 42, 69, 0.8);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 5px;
    color: #e6f1ff;
    font-size: 1rem;
}

.feed-input:focus {
    outline: none;
    border-color: #64ffda;
    box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}

.feed-note {
    font-size: 0.8rem;
    color: #8892b0;
    margin-top: 5px;
    font-style: italic;
}

.config-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    padding: 10px 25px;
    border-radius: 5px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(45deg, #00a3ff, #64ffda);
    color: #0a192f;
}

.btn-secondary {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.breaking-news-container {
    background: rgba(10, 25, 47, 0.9);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 0 auto 40px;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.breaking-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
}

.breaking-label {
    background: linear-gradient(45deg, #ff4d4d, #ff0000);
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.breaking-label i {
    margin-right: 8px;
}

.marquee-container {
    overflow: hidden;
    position: relative;
    height: 40px;
}

.marquee-wrapper:hover {
    -moz-animation-play-state: paused;
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
}

.marquee-wrapper {
    display: flex;
    position: absolute;
    white-space: nowrap;
    animation: marquee 150s linear infinite;
    will-change: transform;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.news-item {
    display: inline-block;
    margin-right: 50px;
    font-size: 1.2rem;
    position: relative;
}

.news-item:after {
    content: "•";
    position: absolute;
    right: -30px;
    color: #64ffda;
}

.news-item:last-child:after {
    display: none;
}

.news-item a {
    color: #e6f1ff;
    text-decoration: none;
    transition: color 0.3s;
}

.news-item a:hover {
    color: #64ffda;
    text-decoration: underline;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-box {
    background: rgba(23, 42, 69, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 10, 30, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 20, 40, 0.6);
}

.box-header {
    padding: 20px;
    background: rgba(10, 25, 47, 0.6);
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
    display: flex;
    align-items: center;
}

.source-icon {
    width: 40px;
    height: 40px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    color: #64ffda;
}

.source-name {
    font-size: 1.3rem;
    font-weight: 600;
}

.ticker-container {
    height: 450px;
    position: relative;
    overflow: hidden;
    padding: 15px;
}

.ticker-content {
    position: absolute;
    width: 100%;
    bottom: 0;
}

.ticker-item {
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(100, 255, 218, 0.05);
    border-radius: 8px;
    border-left: 3px solid #64ffda;
    transition: all 0.3s ease;
    transform: translateY(100px);
    opacity: 0;
    animation: slideIn 0.5s forwards;
}

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

.ticker-item:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateX(5px);
}

.ticker-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.ticker-title a {
    color: #e6f1ff;
    text-decoration: none;
    transition: color 0.3s;
}

.ticker-title a:hover {
    color: #64ffda;
    text-decoration: underline;
}

.ticker-time {
    color: #64ffda;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.ticker-time i {
    margin-right: 5px;
    font-size: 0.8rem;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #8892b0;
    font-style: italic;
}

.loading i {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: rgba(23, 42, 69, 0.95);
    border: 1px solid #64ffda;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.4s ease-out;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-color: #00ff9d;
}

.notification.error {
    border-color: #ff4d4d;
}

.notification-content {
    display: flex;
    align-items: center;
}

.notification i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.notification.success i {
    color: #00ff9d;
}

.notification.error i {
    color: #ff4d4d;
}

footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    color: #8892b0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.update-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.update-info i {
    margin-right: 8px;
    color: #64ffda;
}

/* Admin Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: rgba(10, 25, 47, 0.95);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
}

.modal-title {
    font-size: 1.5rem;
    color: #64ffda;
}

.close-modal {
    background: none;
    border: none;
    color: #8892b0;
    font-size: 1.5rem;
    cursor: pointer;
}

.user-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    padding: 10px;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

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

.user-actions button {
    background: rgba(255, 77, 77, 0.2);
    border: none;
    color: #ff4d4d;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 5px;
    font-size: 0.8rem;
}

.user-actions button:hover {
    background: rgba(255, 77, 77, 0.3);
}

.add-user-form {
    margin-top: 20px;
}

.add-user-form h4, .add-user-form h5 {
    color: #64ffda;
    margin-bottom: 10px;
}

.add-user-form input, .add-user-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(23, 42, 69, 0.8);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 5px;
    color: #e6f1ff;
}

.logout-btn {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 20px auto;
    display: block;
    font-weight: 600;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(100, 255, 218, 0.2);
    transform: translateY(-2px);
}

.admin-password-section {
    background: rgba(100, 255, 218, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.admin-password-section h4 {
    color: #64ffda;
    margin-bottom: 10px;
}

.feed-defaults {
    margin-top: 15px;
    padding: 15px;
    background: rgba(100, 255, 218, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

/* PWA Install Prompt */
.install-prompt {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(10, 25, 47, 0.95);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    z-index: 1002;
    max-width: 300px;
}

.install-content h3 {
    color: #64ffda;
    margin-bottom: 10px;
}

.install-content p {
    color: #8892b0;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.install-content button {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .marquee-wrapper {
        animation: marquee 100s linear infinite;
    }
    
    .ticker-container {
        height: 380px;
    }
    
    .config-content {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        margin-right: 30px;
        font-size: 1rem;
    }
    
    .login-box {
        padding: 30px 20px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .install-prompt {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}