/* GLOBAL */
body {
    font-family: 'Segoe UI', sans-serif;
    background: #e9ecef;
}

/* HEADER */
.top-header {
    background: #111;
    color: #fff;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo span {
    color: #dc3545;
}

/* NAV */
.navbar .nav-link {
    color: #fff !important;
    margin: 0 10px;
}

.navbar .nav-link:hover {
    color: #dc3545 !important;
}

/* DATE */
#todayDate {
    font-size: 13px;
    color: #ccc;
    white-space: nowrap;
}

/* TICKER */
.ticker-wrapper {
    background: #111;
    overflow: hidden;
}

.breaking-badge {
    background: #dc3545;
    color: #fff;
    font-weight: bold;
    white-space: nowrap;
}

.ticker-container {
    overflow: hidden;
}

.ticker-track {
    display: inline-block;
    white-space: nowrap;
    animation: scroll 25s linear infinite;
}

.ticker-container:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-track a {
    color: #fff;
    text-decoration: none;
    margin-right: 40px;
}

.ticker-track a:hover {
    color: #ffc107;
    text-decoration: underline;
}

.ticker-time {
    font-size: 13px;
    color: #ccc;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* TOOLBAR */
.toolbar {
    background: #f1f1f1;
    border-bottom: 1px solid #ccc;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.toolbar .btn {
    margin-right: 5px;
}

/* LAYOUT */
.main-container {
    height: calc(100vh - 140px);
}

/* LEFT PANEL */
.left-panel {
    background: #fff;
    border-right: 1px solid #ddd;
    overflow-y: auto;
}

.thumb {
    width: 100%;
    margin-bottom: 10px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumb:hover {
    border-color: #dc3545;
}

/* VIEWER */
.viewer-area {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.action-bar {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 10px;
    text-align: right;
}

.page-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #dcdcdc;
    overflow: auto;
}

.page-container img {
    max-width: 95%;
    max-height: 95%;
    transition: transform 0.3s;
}

/* EDITIONS */
.section-title {
    font-weight: 600;
}

.edition-card {
    transition: 0.3s;
}

.edition-card:hover {
    transform: translateY(-5px);
}

.edition-card img {
    height: 220px;
    object-fit: cover;
}

/* FOOTER */
footer {
    background: #111;
    color: #bbb;
    text-align: center;
    padding: 15px 0;
}

footer span {
    color: #fff;
}