/*
 * Basic stylesheet for the ECM application.  The palette uses
 * pastel blues to convey a calm professional appearance.  Fonts
 * default to sans‑serif for readability.  Adjust spacing and
 * typography as desired.
 */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5faff; /* light blue background */
    color: #333;
}

a {
    color: #0077cc;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Login page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.login-container {
    background-color: #ffffff;
    border: 1px solid #e0e8f0;
    border-radius: 8px;
    padding: 30px 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    width: 320px;
    text-align: center;
}

.login-container .logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.login-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #336699;
}

.login-container form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    padding: 8px 10px;
    border: 1px solid #ccd7e0;
    border-radius: 4px;
    font-size: 14px;
}

.login-container button {
    padding: 10px;
    background-color: #6699cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}
.login-container button:hover {
    background-color: #4d84b8;
}

.error-msg {
    background-color: #ffebeb;
    border: 1px solid #ffcccc;
    color: #cc0000;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

/* Layout for file explorer */
.header {
    background-color: #336699;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header h1 {
    margin: 0;
    font-size: 20px;
}
.header .user-info {
    font-size: 14px;
}
.container {
    display: flex;
    height: calc(100vh - 50px);
}
.sidebar {
    width: 250px;
    background-color: #f0f6fc;
    border-right: 1px solid #dde5ef;
    overflow-y: auto;
    padding: 10px;
}
.sidebar h3 {
    margin-top: 0;
    color: #336699;
    font-size: 16px;
}
.folder-tree ul {
    list-style-type: none;
    padding-left: 15px;
}
.folder-tree li {
    margin: 4px 0;
    cursor: pointer;
    color: #003366;
}
.folder-tree li.selected {
    font-weight: bold;
    color: #336699;
}
.main {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
}
.toolbar {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}
.toolbar button {
    padding: 6px 12px;
    background-color: #6699cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}
.toolbar button:hover {
    background-color: #4d84b8;
}
.file-table {
    width: 100%;
    border-collapse: collapse;
}
.file-table th, .file-table td {
    padding: 8px;
    border-bottom: 1px solid #e4edf7;
}
.file-table th {
    background-color: #f0f6fc;
    text-align: left;
    font-size: 14px;
    color: #336699;
}
.file-table tr:hover {
    background-color: #f8fbff;
}
.tag {
    display: inline-block;
    padding: 2px 6px;
    background-color: #cce5ff;
    color: #0056b3;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 4px;
    margin-bottom: 2px;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.modal-header h3 {
    margin: 0;
    color: #336699;
}
.modal-close {
    cursor: pointer;
    font-size: 20px;
    color: #888;
}
.modal-close:hover {
    color: #000;
}

/* PDF viewer container */
#pdf-viewer {
    width: 100%;
    height: 80vh;
    border: 1px solid #ccc;
}