:root {
    --talkmore-purple: #1E1B2E;
    --talkmore-gradient: linear-gradient(135deg, #1E1B2E 0%, #8B1E8B 100%);
    --metro-magenta: #E20074;
    --metro-purple: #2D1440;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: var(--talkmore-purple);
    color: var(--white);
    min-height: 100vh;
}

/* App Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Side Navigation */
.side-nav {
    width: 280px;
    background: var(--talkmore-gradient);
    padding: 2rem 0;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.nav-brand {
    padding: 0 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.nav-brand img {
    height: 40px;
    margin-bottom: 0.5rem;
}

.nav-brand span {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-item i {
    width: 24px;
    text-align: center;
}

.nav-item:hover {
    background: rgba(226, 0, 116, 0.2);
}

.nav-item.active {
    background: var(--metro-magenta);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    background: var(--talkmore-purple);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.content-header h1 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header h3 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header i {
    color: var(--metro-magenta);
}

/* Status Grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.status-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-item .label {
    font-size: 0.9rem;
    color: var(--light-gray);
    margin-bottom: 0.5rem;
    display: block;
}

.status-item .value {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    text-align: center;
}

.metric-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--metro-magenta);
    display: block;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--light-gray);
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-item i {
    color: var(--metro-magenta);
}

.activity-time {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--light-gray);
}

/* Notifications */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-item i {
    color: var(--metro-magenta);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .side-nav {
        width: 80px;
    }

    .nav-brand span,
    .nav-item span {
        display: none;
    }

    .main-content {
        margin-left: 80px;
    }

    .nav-item {
        justify-content: center;
        padding: 1rem;
    }

    .nav-item i {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .content-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.tool-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-color: var(--metro-magenta);
}

.tool-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-header h3 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.tool-header h3 i {
    color: var(--metro-magenta);
}

.tool-body {
    padding: 1.2rem;
}

.tool-body p {
    color: var(--light-gray);
    margin-bottom: 1rem;
}

.tool-stats {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.stat-label {
    color: var(--light-gray);
}

.stat-value {
    color: var(--white);
    font-weight: 500;
}

.tool-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.configure-btn {
    background: var(--metro-magenta);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.configure-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
}

.configure-btn:not(:disabled):hover {
    background: #ff0088;
    transform: translateY(-1px);
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-badge:not(.not-configured) {
    background: var(--metro-magenta);
    color: var(--white);
}

.status-badge.not-configured {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-gray);
}

/* Responsive adjustments for tools */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* Card System */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.card {
    background: rgba(44, 46, 64, 0.95);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card.clickable {
    cursor: pointer;
}

.card-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header .title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--white);
}

.card-header i {
    color: var(--metro-magenta);
    font-size: 1.2rem;
}

.card-body {
    padding: 1rem;
}

.card-body p {
    color: var(--light-gray);
    margin-bottom: 1rem;
}

.card-stats {
    display: grid;
    gap: 0.75rem;
}

.card-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.card-stat-label {
    color: var(--light-gray);
    font-size: 0.9rem;
}

.card-stat-value {
    color: var(--white);
    font-weight: 500;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.active {
    background: #4caf50;
    color: white;
}

.status-badge.idle {
    background: #ff9800;
    color: white;
}

.status-badge.not-configured {
    background: #f44336;
    color: white;
}

.card-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Card Variations */
.card.compact {
    min-height: auto;
}

.card.full-width {
    grid-column: 1 / -1;
}

.card.metric {
    text-align: center;
}

.card.metric .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card.metric .value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--white);
    margin: 0.5rem 0;
}

/* Status Badge */
.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-badge.connected {
    background: #4caf50;
    color: var(--white);
}

.status-badge.idle {
    background: #ff9800;
    color: var(--white);
}

.status-badge.error {
    background: #f44336;
    color: var(--white);
}

.status-badge.not-configured {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-gray);
}

/* ==================== SDR Interface Styles ==================== */

/* SDR Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    padding: 0;
}

/* SDR Cards - Enhanced Metro Theme Integration */
.card {
    background: rgba(44, 46, 64, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--metro-magenta);
}

/* SDR Status Grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.status-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.status-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--metro-magenta);
}

.status-label {
    color: var(--light-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.status-value {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
}

/* SDR Scheduled Processes */
.scheduled-processes {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.process-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--metro-magenta);
    transition: all 0.3s ease;
}

.process-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #ff0088;
}

.process-item.inactive {
    opacity: 0.7;
    border-left-color: #666;
}

.process-item.inactive:hover {
    opacity: 0.85;
}

/* SDR Controls */
.controls-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.control-button {
    background: var(--metro-magenta);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.control-button:hover {
    background: #ff0088;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.control-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.control-button i {
    font-size: 1.1rem;
}

.control-button:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    opacity: 0.6;
}

.control-button:disabled:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* SDR Log Display */
.log-container {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.log-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    color: var(--white);
    font-weight: 600;
    display: grid;
    grid-template-columns: 180px 80px 1fr;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.log-content {
    height: 400px;
    overflow-y: auto;
    padding: 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: var(--white);
}

.log-entry {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: 180px 80px 1fr;
    gap: 1rem;
    transition: background-color 0.2s ease;
}

.log-entry:hover {
    background: rgba(255, 255, 255, 0.03);
}

.log-entry:last-child {
    border-bottom: none;
}

/* SDR Time Display */
.status-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.time-info {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    padding: 0.25rem 0;
}

.time-label {
    color: var(--light-gray);
    font-size: 0.85rem;
    font-weight: 500;
}

.time-value {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: right;
    padding-left: 0.5rem;
}

/* SDR Page Subtitle */
.page-subtitle {
    color: var(--light-gray);
    font-size: 0.9rem;
    font-weight: normal;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.page-subtitle:hover {
    color: var(--metro-magenta);
    text-decoration: none;
}

/* SDR Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
}

.modal-content {
    background: rgba(44, 46, 64, 0.98);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 1;
}

.modal-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal input[type="date"] {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.modal input[type="date"]:focus {
    border-color: var(--metro-magenta);
    outline: none;
}

.modal label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-gray);
    font-weight: 500;
}

.modal .control-button {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* SDR Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

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

.notification.loading {
    background: rgba(44, 46, 64, 0.95);
    border-left: 4px solid var(--metro-magenta);
}

.notification.error {
    background: rgba(44, 46, 64, 0.95);
    border-left: 4px solid #ff4444;
}

.notification.success {
    background: rgba(44, 46, 64, 0.95);
    border-left: 4px solid #44ff44;
}

.notification-content {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
}

.notification-content i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notification.loading .notification-content i {
    color: var(--metro-magenta);
}

.notification.error .notification-content i {
    color: #ff4444;
}

.notification.success .notification-content i {
    color: #44ff44;
}

.notification-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.notification-close:hover {
    opacity: 1;
}

/* SDR Responsive Design */
@media (max-width: 768px) {
    .content-grid {
        gap: 1rem;
    }
    
    .controls-container {
        flex-direction: column;
    }
    
    .control-button {
        width: 100%;
        justify-content: center;
    }
    
    .status-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.75rem;
    }
    
    .log-header,
    .log-entry {
        grid-template-columns: 120px 60px 1fr;
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    
    .scheduled-processes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 1rem;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .log-header,
    .log-entry {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    
    .log-header {
        display: none;
    }
    
    .log-entry {
        display: flex;
        flex-direction: column;
        padding: 0.5rem;
    }
} 