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

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    display: flex;
}

nav {
    background-color: #2c3e50;
    width: 200px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px 0;
}

nav ul { list-style: none; display: flex; flex-direction: column; }
nav li { margin: 10px 0; }

nav a {
    color: white;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    transition: 0.3s;
}

nav a:hover {
    color: #3498db;
    background-color: rgba(255,255,255,0.1);
}

main {
    margin-left: 200px;
    width: calc(100% - 200px);
    padding: 40px;
    background-color: white;
    min-height: 100vh;
}

main h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
    font-size: 2em;
    font-weight: 600;
}

.calendar-list,
.friends-list {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 35px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

h3 {
    color: #34495e;
    font-size: 1.4em;
    margin-bottom: 20px;
}

.add-calendar-btn {
    display: inline-block;
    background-color: #2ecc71;
    color: white;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    margin-bottom: 20px;
}

.add-calendar-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

main ul {
    list-style: none;
}

main ul li {
    background: white;
    padding: 18px 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

main ul li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.item-actions a {
    margin-left: 12px;
    text-decoration: none;
    color: #3498db;
    font-weight: 500;
    transition: 0.2s;
}

.item-actions a:hover {
    color: #2980b9;
}

.delete-link { color: #e74c3c !important; }
.delete-link:hover { color: #c0392b !important; }

.access-tag {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: white;
    font-weight: 600;
}

.access-tag.editor { background-color: #2ecc71; }
.access-tag.viewer { background-color: #3498db; }

.empty-text {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #7f8c8d;
}

@media(max-width: 992px) {
    nav { width: 60px; }
    nav a { text-align: center; padding: 10px; }
    main { margin-left: 60px; width: calc(100% - 60px); }
}

@media(max-width: 576px) {
    nav { width: 100%; height: auto; position: relative; }
    nav ul { flex-direction: row; justify-content: center; flex-wrap: wrap; }
    main { margin-left: 0; width: 100%; padding: 25px; }
}