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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #212121;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-bottom: 16px;
}

.header-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #212121;
}

.header-icons {
    display: flex;
    gap: 16px;
}

.header-icon {
    width: 24px;
    height: 24px;
    color: #757575;
    cursor: pointer;
}

/* Notes List */
#notes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    min-height: 400px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 16px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.empty-icon {
    font-size: 96px;
    color: #F5F5F5;
    margin-bottom: 16px;
}

.empty-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #9E9E9E;
}

/* Note Card */
.note-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.note-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    font-size: 14px;
    color: #9e9e9e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all 0.2s;
}

.delete-btn:hover {
    background-color: #ffebee;
    color: #d32f2f;
    opacity: 1;
    transform: scale(1.1);
}

.note-card h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 8px;
    color: #212121;
}

.note-card p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #757575;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-card small {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #9E9E9E;
}

/* Add Button */
#add-note-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: #feb221;
    border: none;
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: transform 0.2s, box-shadow 0.2s;
}

#add-note-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

#add-note-btn::after {
    content: '+';
    font-size: 24px;
    font-weight: bold;
    color: #212121;
}

/* Navigation Tabs */


/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 500px;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

@keyframes slideOut {
    from {transform: translateY(0); opacity: 1;}
    to {transform: translateY(-50px); opacity: 0;}
}

#add-note-modal {
    background-color: rgba(0,0,0,0.5);
}

#add-note-modal.fade-out {
    background-color: rgba(0,0,0,0);
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.close {
    color: #9E9E9E;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #212121;
}

.modal h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 20px;
    margin-bottom: 16px;
    color: #212121;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
    color: #757575;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #212121;
}

#save-note {
    background-color: #FFEB3B;
    color: #212121;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#save-note:hover {
    background-color: #fdd835;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 8px;
    }
    
    .header {
        padding: 12px;
    }
    
    .header-title {
        font-size: 20px;
    }
    
    #notes-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .note-card {
        padding: 12px;
    }
    
    .note-card h3 {
        font-size: 16px;
    }
    
    .note-card p {
        font-size: 13px;
    }
    
    #add-note-btn {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }
    
    #add-note-btn::after {
        font-size: 20px;
    }
    
    .nav-tabs {
        margin: 8px 0;
    }
    
    .nav-tab {
        padding: 12px;
    }
    
    .nav-tab i {
        font-size: 20px;
    }
    
    .nav-tab span {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 18px;
    }
    
    .empty-icon {
        font-size: 64px;
    }
    
    .empty-text {
        font-size: 14px;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 16px;
    }
}
