/* Basis Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0a1a2e;
    --secondary-blue: #16213e;
    --accent-blue: #1e3a5f;
    --bright-blue: #40e0ff;
    --hover-blue: #4080ff;
    --success-green: #4ade80;
    --error-red: #ef4444;
    --warning-yellow: #f59e0b;
    --text-white: #ffffff;
    --text-gray: rgba(255, 255, 255, 0.7);
    --border-color: rgba(64, 224, 255, 0.3);
    --glass-bg: rgba(16, 33, 62, 0.8);
    --shadow-glow: rgba(64, 224, 255, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, var(--accent-blue) 100%);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
.header {
    background: rgba(10, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--bright-blue), var(--hover-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px var(--shadow-glow);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background: rgba(64, 224, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--bright-blue);
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-btn:hover,
.nav-btn.active {
    background: rgba(64, 224, 255, 0.2);
    border-color: var(--bright-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-glow);
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 2rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    min-height: calc(100vh - 80px);
}

/* Cards */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--bright-blue), var(--hover-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(64, 224, 255, 0.6);
    box-shadow: 0 20px 40px var(--shadow-glow);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--bright-blue), var(--hover-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px var(--shadow-glow);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--bright-blue);
}

/* Form Elements */
input, textarea, select {
    background: rgba(10, 26, 46, 0.8);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-white);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--bright-blue);
    box-shadow: 0 0 0 3px rgba(64, 224, 255, 0.1);
    background: rgba(10, 26, 46, 0.9);
}

input::placeholder, textarea::placeholder {
    color: var(--text-gray);
}

/* Buttons */
.add-btn, .send-btn, .save-btn {
    background: linear-gradient(45deg, var(--bright-blue), var(--hover-blue));
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(64, 224, 255, 0.3);
}

.add-btn:hover, .send-btn:hover, .save-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(64, 224, 255, 0.4);
}

/* Task Management */
.task-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.task-input input {
    flex: 1;
}

.task-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 26, 46, 0.6);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-left: 4px solid var(--bright-blue);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.task-item:hover {
    background: rgba(10, 26, 46, 0.8);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.task-item.completed {
    opacity: 0.7;
    border-left-color: var(--success-green);
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: var(--text-gray);
}

.task-text {
    flex: 1;
    font-size: 0.95rem;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
}

.task-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--bright-blue);
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.task-btn:hover {
    background: rgba(64, 224, 255, 0.1);
    transform: scale(1.05);
}

.task-btn.complete {
    border-color: var(--success-green);
    color: var(--success-green);
}

.task-btn.complete:hover {
    background: rgba(74, 222, 128, 0.1);
}

.task-btn.delete {
    border-color: var(--error-red);
    color: var(--error-red);
}

.task-btn.delete:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Email Form */
.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Calendar Styles */
.calendar-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.calendar-header {
    text-align: center;
    padding: 0.8rem;
    background: rgba(64, 224, 255, 0.15);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--bright-blue);
    font-weight: 600;
}

.calendar-day {
    text-align: center;
    padding: 0.8rem;
    background: rgba(10, 26, 46, 0.6);
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.calendar-day:hover {
    background: rgba(64, 224, 255, 0.15);
    border-color: var(--border-color);
    transform: scale(1.05);
}

.calendar-day.today {
    background: linear-gradient(45deg, var(--bright-blue), var(--hover-blue));
    color: var(--primary-blue);
    font-weight: bold;
    box-shadow: 0 4px 15px var(--shadow-glow);
}

.calendar-day.has-event {
    background: rgba(74, 222, 128, 0.2);
    border-color: var(--success-green);
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--success-green);
    border-radius: 50%;
}

/* Notes */
.notes-textarea {
    min-height: 200px;
    resize: vertical;
    font-family: 'Consolas', 'Monaco', monospace;
    line-height: 1.6;
}

.save-btn {
    margin-top: 1rem;
}

/* Weather Display */
.weather-display {
    text-align: center;
}

.weather-temp {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--bright-blue), var(--hover-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1rem 0;
}

.weather-desc {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.weather-item {
    background: rgba(10, 26, 46, 0.6);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.weather-item:hover {
    background: rgba(10, 26, 46, 0.8);
    transform: translateY(-2px);
}

/* Status Dashboard */
.status-list {
    space-y: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(10, 26, 46, 0.4);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 1rem;
    box-shadow: 0 0 8px currentColor;
}

.status-online { background: var(--success-green); }
.status-busy { background: var(--error-red); }
.status-away { background: var(--warning-yellow); }

.progress-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.progress-bar {
    background: rgba(10, 26, 46, 0.6);
    height: 12px;
    border-radius: 6px;
    margin-top: 0.8rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress-fill {
    background: linear-gradient(45deg, var(--bright-blue), var(--hover-blue));
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--shadow-glow);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 26, 46, 0.5);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--bright-blue), var(--hover-blue));
    border-radius: 6px;
    border: 2px solid rgba(10, 26, 46, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--hover-blue), var(--bright-blue));
}