body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#container {
    flex: 1;
}

#foot {
    margin-top: auto;
    padding: 20px;
    background: linear-gradient(to right, var(--card-background), var(--main-background));
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.notes-container {
    margin-top: 2rem;
    width: 100%;
}

.notes-table {
    width: 100%;
    overflow-x: auto;
    background-color: var(--main-background);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-color);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

th {
    background-color: var(--card-background);
    font-weight: 600;
    color: var(--title-color);
}

tr {
    transition: background-color 0.3s ease;
    position: relative;
}

tr:hover {
    background-color: var(--card-background);
}

tr td:last-child {
    position: relative;
    z-index: 5;
}

.view-btn {
    padding: 0.8rem 1.5rem;
    background-color: var(--title-color);
    color: white !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.view-btn:hover {
    background-color: var(--card-hover-bg);
    color: var(--card-hover-text) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.view-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

.drive-link {
    color: var(--title-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.drive-link:hover {
    color: var(--card-hover-text);
    text-decoration: underline;
}

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

.modal-content {
    position: relative;
    background-color: var(--main-background);
    margin: 2% auto;
    padding: 20px;
    width: 90%;
    height: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1001;
}

.close-btn:hover {
    color: var(--title-color);
}

#pdfViewer {
    width: 100%;
    height: calc(100% - 20px);
    margin-top: 20px;
    border-radius: 5px;
    background-color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .notes-table {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    th, td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .view-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    #foot {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
} 