* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #000000;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    padding: 15px;
    overflow: hidden;
}

.dashboard-container {
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fade-target, .hide-target, .frame {
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.5s ease;
}

/* Top Grid Bar - Scaled up for clearer viewing */
.header-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 15px;
    height: 240px; /* Increased from 180px */
    width: 100%;
    flex-shrink: 0;
}

.frame {
    background: #000000;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #ffffff;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.frame-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Left Side: Updates */
.updates-frame {
    justify-content: flex-start;
}

.social-feeds {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feed-item {
    background: #000000;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Center Focus: Massive DateTime & Calendar */
.datetime-frame {
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 15px;
}

#clock {
    font-size: 3.2rem; 
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 4px;
}

#date {
    font-size: 1.15rem; 
    margin-bottom: 12px;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
}

.mini-cal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    width: 85%;
    font-size: 0.85rem;
}

.cal-day {
    text-align: center;
    color: #555555;
}

.cal-header {
    color: #ffffff;
    font-weight: bold;
}

.cal-day.active {
    background: #ffffff;
    color: #000000;
    border-radius: 4px;
    font-weight: bold;
}

/* Right Side: Customized To Do List */
.todo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    background: #000000;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ffffff;
    font-weight: 500;
}

.todo-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #ffffff;
    border: 1px solid #ffffff;
    background: transparent;
    cursor: pointer;
}

/* Middle Interaction Box */
.center-frame {
    flex: 1; 
    position: relative;
    padding: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.control-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    width: 100%;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-container {
    display: flex;
    background: #000000;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #ffffff;
    width: 300px;
}

.toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.toggle-btn.active {
    background: #ffffff; 
    color: #000000;
    font-weight: bold;
}

.mirror-toggle-btn {
    background: #000000;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mirror-toggle-btn:hover {
    background: #ffffff;
    color: #000000;
}

.view-content {
    flex: 1;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ffffff;
    background: #000000;
    overflow: hidden;
    position: relative;
    transition: border-color 0.5s ease;
}

.hidden {
    display: none !important;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    background-color: #000000;
}



/* Expanded length for NDTV streams */
.news-frame {
    height: 260px; /* Increased from 110px */
    
}

.news-ticker {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    height: 100%;
    padding-right: 5px;
}
.news-item {

font-size: 30px;

font-weight: bold;

text-align: center;

line-height: 1.5;

padding: 20px;

white-space: normal;

color: white;
}
.news-item a{
color:white;
text-decoration:none;
}

.news-item a:hover{
text-decoration:underline;
}

.news-ticker::-webkit-scrollbar {
    width: 4px;
}
.news-ticker::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 2px;
}

/* Production Mirror States */
.mirror-active-layout #media-block {
    opacity: 0 !important;
    pointer-events: none;
}

.mirror-active-layout .control-header-bar {
    opacity: 0.3 !important;
}

.mirror-active-layout .center-frame {
    border-color: transparent !important;
}

.mirror-active-layout .fade-target {
    opacity: 0.25 !important;
}