:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --accent: #f72585;
    --light: #f8f9fa;
    --light-gray: #e9ecef;
    --gray: #adb5bd;
    --dark: #212529;
    --success: #4cc9f0;
    --warning: #f8961e;
    --danger: #f94144;
    --border-radius: 12px;
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: #f5f7ff;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    color: var(--primary);
    font-size: 28px;
}

.logo h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.user-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: rgba(67, 97, 238, 0.1);
}

.btn-ai {
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    color: white;
}

.btn-ai:hover {
    background: linear-gradient(90deg, var(--secondary), #e11570);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

main {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    main {
        grid-template-columns: 1fr;
    }
}

.panel {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    transition: var(--transition);
}

.panel:hover {
    box-shadow: var(--box-shadow-hover);
}

.panel-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
}

.panel-title i {
    color: var(--primary);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark);
}

input, select, textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.time-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.priority-select {
    display: flex;
    gap: 10px;
}

.priority-option {
    flex: 1;
    text-align: center;
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.priority-option:hover {
    border-color: var(--primary);
}

.priority-option.selected {
    border-color: var(--primary);
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

.priority-option.low { border-left: 4px solid var(--success); }
.priority-option.medium { border-left: 4px solid var(--warning); }
.priority-option.high { border-left: 4px solid var(--danger); }

.schedule-list {
    max-height: 500px;
    overflow-y: auto;
}

.schedule-item {
    padding: 18px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    border-left: 5px solid var(--primary);
    background-color: var(--light);
    position: relative;
    transition: var(--transition);
}

.schedule-item:hover {
    transform: translateX(5px);
}

.schedule-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.schedule-title {
    font-weight: 600;
    font-size: 17px;
}

.schedule-time {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    background: rgba(67, 97, 238, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.schedule-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.schedule-priority {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
}

.priority-low { background-color: rgba(76, 201, 240, 0.2); color: #0a9396; }
.priority-medium { background-color: rgba(248, 150, 30, 0.2); color: #ca6702; }
.priority-high { background-color: rgba(249, 65, 68, 0.2); color: #ae2012; }

.delete-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.delete-btn:hover {
    color: var(--danger);
}

.ai-suggestions {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.suggestions-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.suggestion-card {
    padding: 20px;
    border-radius: var(--border-radius);
    border: 2px solid var(--light-gray);
    transition: var(--transition);
}

.suggestion-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.suggestion-title {
    font-weight: 600;
    font-size: 18px;
}

.suggestion-ai-badge {
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.suggestion-desc {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.suggestion-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #777;
}

.calendar-view {
    justify-content: center;
    margin-top: 20px;
}

.time-slots {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.time-slot {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
}

.time-label {
    width: 80px;
    font-weight: 500;
    color: #666;
}

.slot-content {
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-radius: var(--border-radius);
    margin-left: 10px;
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.empty {
    background-color: #f8f9fa;
    color: #999;
    justify-content: center;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.stat-box {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--box-shadow);
    flex: 1;
    margin: 0 10px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #777;
    font-size: 14px;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background-color: var(--primary);
    color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--light-gray);
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .user-actions {
        width: 100%;
        justify-content: center;
    }
    
    .stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-box {
        margin: 0;
    }
}