/* Reset and Base Styles */
:root {
    --max-width: 1200px;
    --container-padding: clamp(0.75rem, 2vw, 2rem);
    --card-padding: clamp(1rem, 2.2vw, 3rem);
    --radius: 14px;
    --muted: #666;
    --bg-gradient: linear-gradient(135deg, #1e40af 0%, #000000 100%);
    --surface: #ffffff;
    --accent: #2563eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fluid base font */
html { font-size: clamp(14px, 1.4vw, 16px); }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: #222;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--container-padding);
}

header h1 {
    color: white;
    font-size: clamp(1.2rem, 2.4vw, 1.9rem);
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

/* Login Section */
.login-container, .pin-container, .employee-selection-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 72vh;
    padding: var(--container-padding);
}

.login-card, .selection-card, .pin-card {
    background: var(--surface);
    padding: var(--card-padding);
    border-radius: var(--radius);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    text-align: center;
    width: 100%;
    max-width: 420px;
}

/* Login Form Styles */
.login-form {
    text-align: left;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#pinInputForm {
    letter-spacing: 0.5rem;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.login-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent), #5a67d8);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-help {
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    text-align: left;
}

.login-help p {
    margin: 0.5rem 0;
    font-size: 0.85rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-help i {
    color: var(--accent);
}

.selection-card {
    max-width: 920px;
}

/* PIN Section */
.pin-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 2rem;
}

.pin-card {
    background: linear-gradient(135deg, #2563eb, #000000);
    color: white;
}

.pin-card h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.pin-card p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.pin-input-container {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

#pinInput {
    flex: 1;
    padding: 0.9rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 0.5rem;
    font-weight: 700;
}

#pinInput:focus {
    outline: 3px solid rgba(255, 255, 255, 0.3);
}

.error-message {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.5);
    padding: 0.75rem;
    border-radius: 8px;
    color: #ffcccb;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Employee Selection Section */
.employee-selection-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 2rem;
}

.employees-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    max-height: 50vh;
    overflow-y: auto;
    padding: 0.75rem;
    border: 1px solid #e6edf6;
    border-radius: 10px;
    background: #f8fafc;
}

.selection-card h2 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.5rem;
}

.selection-card p {
    margin-bottom: 1rem;
    color: #666;
}

.security-note {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.security-note i {
    font-size: 1rem;
}

.employee-button {
    background: linear-gradient(135deg, #2563eb 0%, #000000 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    text-align: left;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.employee-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.employee-button:active {
    transform: translateY(-1px);
}

.employee-handle {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.employee-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

.employee-pin-hint {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.25rem;
    font-style: italic;
}

.founder-button {
    background: linear-gradient(135deg, #1e40af, #fbbf24) !important;
    border: 2px solid #fff;
}

.founder-button .employee-handle::after {
    content: " 👑";
    font-size: 1rem;
}

/* Employee Dashboard */
.employee-dashboard {
    margin-bottom: 2rem;
}

.employee-card-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.employee-card-section h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.2rem;
}

.employee-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-card {
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    padding: 1.5rem;
    border-radius: 12px;
    color: white;
    text-align: center;
    transition: transform 0.3s ease;
}

.action-card:hover {
    transform: translateY(-3px);
}

.action-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.action-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.action-card p {
    margin-bottom: 1rem;
    opacity: 0.9;
    font-size: 0.9rem;
}

.action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.status-select {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
}

.notification-enabled {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.notification-disabled {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

.login-card h2 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.5rem;
}

.login-card p {
    margin-bottom: 2rem;
    color: #666;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #4285f4;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.google-btn:hover {
    background: #3367d6;
    transform: translateY(-2px);
}

/* Dashboard */
.dashboard {
    padding: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Founder Controls */
.founder-section {
    margin-bottom: 3rem;
}

.founder-personal-panel {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.founder-personal-panel h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.founder-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.founder-action-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: 12px;
    color: white;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.founder-action-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

.founder-action-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.founder-action-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.founder-action-card p {
    margin-bottom: 1rem;
    opacity: 0.9;
    font-size: 0.9rem;
}

.founder-action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.founder-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.founder-status-select {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
}

.founder-notification-enabled {
    background: rgba(34, 197, 94, 0.3) !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
}

.founder-notification-disabled {
    background: rgba(239, 68, 68, 0.3) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
}

.alert-card {
    background: linear-gradient(135deg, #2563eb, #000000);
    padding: 2rem;
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.alert-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.alert-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.alert-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

#alertMessage {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 200px;
}

#alertType {
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #333;
}

.alert-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-btn:hover {
    background: white;
    color: #2563eb;
}

/* Employees Section */
.employees-section, .notifications-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.employees-section h3, .notifications-section h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.2rem;
}

.employees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.employee-card {
    background: linear-gradient(135deg, #2563eb 0%, #000000 100%);
    padding: 1.5rem;
    border-radius: 12px;
    color: white;
    transition: transform 0.3s ease;
}

.employee-card:hover {
    transform: translateY(-5px);
}

.employee-handle {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.employee-email {
    opacity: 0.9;
    font-size: 0.9rem;
}

.employee-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
}

/* Notifications List */
.notifications-list {
    max-height: 40vh;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem;
    border-left: 4px solid #2563eb;
    background: #f8fafc;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.notification-type {
    background: #2563eb;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.notification-time {
    color: #666;
    font-size: 0.8rem;
}

.notification-message {
    color: #333;
}

/* Buttons */
.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #5a67d8;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: #333;
}

.modal-content p {
    margin-bottom: 2rem;
    color: #666;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 900px) {
    .header-content { padding: 0 1rem; }
    .container { padding: 0 1rem; }
}

@media (max-width: 768px) {
    .header-content { padding: 0 0.75rem; }
    
    .alert-controls { flex-direction: column; align-items: stretch; }
    #alertMessage, #alertType, .alert-btn { width: 100%; }
    .employees-grid { grid-template-columns: 1fr; }
    .employee-button { padding: 0.9rem; border-radius: 10px; }
    .login-card, .pin-card, .selection-card { padding: 1.25rem; border-radius: 12px; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    header h1 { font-size: 1.1rem; }
    .header-content { padding: 0 0.5rem; }
    .login-card, .pin-card, .selection-card { max-width: 95%; }
    .employees-buttons { grid-template-columns: 1fr; }
    .employees-buttons { padding: 0.5rem; }
    #pinInput { letter-spacing: 0.3rem; }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* News System Styles */
.news-management-card {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 2rem;
    border-radius: var(--radius);
    margin: 2rem 0;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.2);
}

.news-management-card h3 {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-form {
    margin-top: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

#newsTitle, #newsType, #newsContent {
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
}

#newsContent {
    width: 100%;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 1rem;
}

.news-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.news-btn, .news-btn-secondary {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.news-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.news-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.news-btn-secondary {
    background: rgba(0, 0, 0, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.news-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* News Section */
.news-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.news-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
}

.news-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#newsFilter {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
}

.unread-indicator {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.unread-indicator[data-count="0"] {
    display: none;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.news-card.unread {
    border-left: 4px solid #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #f0f9ff 100%);
}

.news-card.urgent {
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, #fecaca 0%, #fef2f2 100%);
}

.news-card.important {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, #fed7aa 0%, #fff7ed 100%);
}

.news-header-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.news-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-type-badge.info {
    background: #dbeafe;
    color: #1e40af;
}

.news-type-badge.important {
    background: #fed7aa;
    color: #c2410c;
}

.news-type-badge.urgent {
    background: #fecaca;
    color: #dc2626;
}

.news-type-badge.event {
    background: #d1fae5;
    color: #065f46;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-content {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #9ca3af;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.unread-dot {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    display: inline-block;
}

.no-news {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.no-news i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
    display: block;
}

/* News Modals */
.news-preview, .news-detail {
    max-width: 600px;
    margin: 0 auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

#newsPreviewContent, #newsDetailContent {
    margin-bottom: 2rem;
}

.preview-card, .detail-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    background: #f9fafb;
}

.preview-title, .detail-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.preview-content, .detail-content {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.preview-meta, .detail-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
}

/* Responsive News */
@media (max-width: 768px) {
    .news-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-filter {
        width: 100%;
        justify-content: space-between;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .news-controls {
        justify-content: stretch;
    }
    
    .news-btn, .news-btn-secondary {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .news-section {
        padding: 1rem;
    }
    
    .news-card {
        padding: 1rem;
    }
    
    .news-management-card {
        padding: 1.5rem;
    }
}

/* VIDEO CONFERENCE SYSTEM STYLES */
.vc-management-card {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 2rem;
    border-radius: var(--radius);
    margin: 2rem 0;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.vc-management-card h3 {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vc-founder-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.vc-btn, .vc-btn-secondary {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.vc-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.vc-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.vc-btn-secondary {
    background: rgba(0, 0, 0, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.vc-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.vc-btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.vc-btn-danger:hover {
    background: rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* VC Rooms Section */
.vc-rooms-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.vc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.vc-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
}

.vc-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vc-quick-btn {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.vc-quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.active-rooms-count {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* VC Rooms Grid */
.vc-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.room-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.room-card.active {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.room-platform-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.room-platform-badge.jitsi {
    background: #dbeafe;
    color: #1e40af;
}

.room-platform-badge.discord {
    background: #e0e7ff;
    color: #3730a3;
}

.room-platform-badge.meet {
    background: #fef3c7;
    color: #d97706;
}

.room-platform-badge.zoom {
    background: #dbeafe;
    color: #1e40af;
}

.room-platform-badge.teams {
    background: #dbeafe;
    color: #1e40af;
}

.room-platform-badge.custom {
    background: #f3f4f6;
    color: #374151;
}

.room-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.room-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.room-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

.room-creator {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.room-time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.room-participants {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 0.85rem;
}

.participants-count {
    font-weight: 600;
    color: #10b981;
}

.room-actions {
    display: flex;
    gap: 0.5rem;
}

.room-join-btn, .room-info-btn {
    flex: 1;
    padding: 0.7rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.room-join-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.room-join-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.room-info-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.room-info-btn:hover {
    background: #e5e7eb;
}

.room-delete-btn {
    padding: 0.7rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
    min-width: 44px;
}

.room-delete-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.no-rooms {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.no-rooms i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
    display: block;
}

/* VC Modals */
.vc-modal, .quick-join-modal, .room-info-modal, .clear-rooms-modal {
    max-width: 500px;
    margin: 0 auto;
}

.vc-creation-form {
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
}

.checkmark {
    position: relative;
}

.quick-join-form {
    margin: 1.5rem 0;
}

.quick-join-form input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.quick-join-buttons {
    display: flex;
    gap: 1rem;
}

.quick-join-buttons button {
    flex: 1;
}

.room-info-content {
    margin-bottom: 2rem;
}

.room-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.room-info-item:last-child {
    border-bottom: none;
}

.room-info-label {
    font-weight: 600;
    color: #374151;
    min-width: 100px;
}

.room-info-value {
    color: #6b7280;
}

/* Clear Rooms Modal */
.warning-content {
    text-align: center;
    padding: 1rem 0;
}

.warning-icon {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.warning-content h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.warning-content p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.rooms-count-info {
    background: #fef3c7;
    color: #d97706;
    padding: 0.8rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 600;
    border: 1px solid #fbbf24;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

/* Status Indicators */
.status-online {
    color: #10b981;
}

.status-busy {
    color: #ef4444;
}

.status-away {
    color: #f59e0b;
}

/* Responsive VC */
@media (max-width: 768px) {
    .vc-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vc-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .vc-rooms-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .vc-founder-actions {
        justify-content: stretch;
    }
    
    .vc-btn, .vc-btn-secondary {
        flex: 1;
        justify-content: center;
    }
    
    .room-actions {
        flex-direction: column;
    }
    
    .room-actions {
        gap: 0.3rem;
    }
    
    .room-join-btn, .room-info-btn, .room-delete-btn {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .vc-rooms-section {
        padding: 1rem;
    }
    
    .room-card {
        padding: 1rem;
    }
    
    .vc-management-card {
        padding: 1.5rem;
    }
    
    .room-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}