/* Apple Notes Dark Mode - Sidebar Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #000000;
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.6;
    overflow: hidden;
}

.notes-app {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Sidebar Styles */
.sidebar {
    width: 260px;
    background: #1c1c1e;
    border-right: 1px solid #3a3a3c;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #3a3a3c;
}

.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    background: #2c2c2e;
    border: 1px solid #3a3a3c;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
}

.search-input::placeholder {
    color: #8e8e93;
}

.search-input:focus {
    border-color: #ffd60a;
}

.sidebar-section {
    margin-bottom: 24px;
}

.section-header {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #8e8e93;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.note-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(58, 58, 60, 0.3);
    transition: background-color 0.2s ease;
}

.note-item:hover {
    background: #2c2c2e;
}

.note-item.active {
    background: #ffd60a;
}

.note-item.active .note-title,
.note-item.active .note-date,
.note-item.active .note-preview {
    color: #ffffff;
}

.note-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.note-emoji {
    font-size: 16px;
    flex-shrink: 0;
}

.note-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
}

.note-date {
    font-size: 12px;
    color: #8e8e93;
    margin-bottom: 4px;
}

.note-preview {
    color: #8e8e93;
    font-size: 13px;
    font-weight: 400;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    background: #000000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.note-header {
    padding: 20px 32px;
    border-bottom: 1px solid #3a3a3c;
    background: #1c1c1e;
}

.note-title-main {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.6px;
}

.note-date-main {
    font-size: 14px;
    color: #8e8e93;
    font-weight: 400;
}

.note-content-main {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    background: #000000;
}

.note-section {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.note-section.hidden {
    display: none;
}

.note-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    margin-top: 24px;
    letter-spacing: -0.3px;
}

.note-section h3:first-child {
    margin-top: 0;
}

.note-section p {
    color: #ffffff;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.note-section ul {
    margin-bottom: 16px;
    padding-left: 0;
    list-style: none;
}

.note-section li {
    color: #ffffff;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.note-section li::before {
    content: '•';
    color: #8e8e93;
    position: absolute;
    left: 0;
}

.note-section a {
    color: #ffd60a;
    text-decoration: none;
    font-weight: 500;
}

.note-section a:hover {
    text-decoration: underline;
}

/* Link List Styling - Updated to match Apple Notes */
.link-list {
    list-style: none;
    padding: 0;
}

.link-list li {
    margin-bottom: 12px;
    padding-left: 0;
}

.link-list li::before {
    display: none;
}

.link-list a {
    color: #ffd60a;
    text-decoration: none;
    font-weight: 500;
}

.link-list a:hover {
    text-decoration: underline;
}

/* Project and Experience Items */
.project-item,
.experience-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #3a3a3c;
}

.project-item:last-child,
.experience-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.project-item h3,
.experience-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    margin-top: 0;
}

.role-details {
    font-size: 15px;
    color: #8e8e93;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Apple Notes Checklist Styling */
.checklist {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.checklist li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding-left: 0;
    position: relative;
}

.checklist li::before {
    display: none;
}

.apple-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #8e8e93;
    border-radius: 50%;
    margin-right: 12px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.apple-checkbox:checked {
    background-color: #ffd60a;
    border-color: #ffd60a;
}

.apple-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.apple-checkbox:hover {
    border-color: #ffd60a;
}

.checklist span {
    color: #ffffff;
    font-size: 17px;
    line-height: 1.4;
    flex: 1;
}

.apple-checkbox:checked + span {
    color: #8e8e93;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .notes-app {
        flex-direction: row;
        position: relative;
    }
    
    .sidebar {
        width: 100%;
        height: 100vh;
        border-right: none;
        border-bottom: none;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 10;
        transition: transform 0.3s ease;
    }
    
    .sidebar.hidden {
        transform: translateX(-100%);
    }
    
    .main-content {
        width: 100%;
        height: 100vh;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 5;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .main-content.active {
        transform: translateX(0);
    }
    
    .mobile-back-button {
        display: block;
        position: absolute;
        top: 20px;
        left: 20px;
        background: none;
        border: none;
        color: #ffd60a;
        font-size: 17px;
        font-weight: 600;
        cursor: pointer;
        z-index: 20;
        padding: 8px 12px;
        border-radius: 8px;
        transition: background-color 0.2s ease;
    }
    
    .mobile-back-button:hover {
        background: rgba(255, 214, 10, 0.1);
    }
    
    .note-header {
        padding: 60px 20px 16px 20px;
    }
    
    .note-title-main {
        font-size: 24px;
    }
    
    .note-content-main {
        padding: 20px;
        height: calc(100vh - 120px);
        overflow-y: auto;
    }
    
    .note-section h3 {
        font-size: 18px;
    }
    
    .note-section p,
    .note-section li {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .mobile-back-button {
        top: 16px;
        left: 16px;
        font-size: 16px;
    }
    
    .note-header {
        padding: 56px 16px 12px 16px;
    }
    
    .note-content-main {
        padding: 16px;
        height: calc(100vh - 100px);
    }
    
    .note-section h3 {
        font-size: 16px;
        margin-top: 20px;
    }
    
    .note-section p,
    .note-section li {
        font-size: 15px;
    }
}

@media (min-width: 769px) {
    .mobile-back-button {
        display: none;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Selection styling */
::selection {
    background: #ffd60a;
    color: #ffffff;
}

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

::-webkit-scrollbar-track {
    background: #1c1c1e;
}

::-webkit-scrollbar-thumb {
    background: #3a3a3c;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #48484a;
}

/* Sidebar scrollbar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.note-content-main::-webkit-scrollbar {
    width: 6px;
}
