/* ===========================
   GLOBAL BASE
=========================== */

html, body {
    margin: 0;
}


body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    background-image: url('background.png');
    background-position: center, 0 0;
    background-size: cover, 20px 20px;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
}


/* ===========================
   HEADER
=========================== */
.site-header {
    background: rgba(0, 51, 102, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
    padding: 1rem 2%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-title {
    font-size: 2.4rem;
    font-weight: 600; 
    letter-spacing: -0.5px;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-actions a {
    font-size: 0.9rem;
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
}

.header-actions a:hover {
    text-decoration: underline;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    margin-left: 10px;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.00rem;
    transition: all 0.3s ease;
    border-radius: 8px; 
}

.nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px); 
}

.nav-links a.active {
    color: white;
    background: rgba(255, 255, 255, 0.25);
    font-weight: 700;
}


.nav-links a[href*="logout"] {
    background: rgba(0, 0, 0, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-links a[href*="logout"]:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ===========================
   DASHBOARD
=========================== */
.dashboard-container {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
}

.section {
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: transform 0.2s ease;
}

.section p {
    overflow-wrap: break-word;
    word-break: break-word;
}

.section:hover {
    transform: translateY(-4px);
}

.progress-bar {
    width: 100%;
    background: #e4e4e4;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 18px;
    width: 60%;
    background: #68acc1;
}

.artifact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.artifact-card {
    background: #f7f7f7;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.overview-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.overview-2col .card {
    padding: 14px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e3e3e3;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    margin-bottom: 12px;
}

/* ===========================
   LOGIN PAGE
=========================== */

.login-page .container {
    width: 420px;
    margin: 60px auto;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e3e3e3;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.login-page h2 {
    display: flex;
    justify-content: center;
}

.login-page .tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    cursor: pointer;
}

.login-page .tab {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
}

.login-page .tab-active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}

.login-page .active {
    border-bottom: 3px solid #007bff;
    color: #007bff;
}

.login-page form {
    display: none;
}

.login-page form.active-form {
    display: block;
}

.login-page input {
    width: 100%;
    padding: 12px 16px;
    margin: 8px 0 20px 0;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    transition: all 0.3s ease;
}

.login-page input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    outline: none;
}

.login-page button {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-page button:hover {
    background-color: #0056b3;
}

.login-page .error {
    color: red;
    text-align: center;
}

.login-page .success {
    color: green;
    text-align: center;
}

/* ===========================
   EDIT PAGES
=========================== */
.edit-container {
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
}

label {
    font-weight: bold;
    margin-top: 15px;
    display: block;
}

textarea {
    resize: vertical;
}


/* ===========================
   GLOBAL FORM ELEMENTS
=========================== */
input, textarea, select {
    width: 100%;
    padding: 12px;
    margin: 8px 0 15px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: inherit;
    box-sizing: border-box;

}

/* ===========================
   BUTTONS
=========================== */

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-edit {
    padding: 8px 16px;
    background: #dbe9f5;
    backdrop-filter: blur(4px);
    color: #24507d;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
}

.btn-edit:hover {
    background: #24507d;
    backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: 6px;
    color: white;
}

.btn-delete {
    padding: 8px 16px;
    background: #ffe8e7;
    backdrop-filter: blur(4px);
    color: #db3947;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
}

.btn-delete:hover {
    background: #db3947;
    backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #ffe8e7;
}

.btn-add {
    padding: 8px 16px;
    background: #dae1de;
    backdrop-filter: blur(4px);
    color: #157347;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-add:hover {
    background: #157347;
    backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #dae1de;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: #24507d;
    font-size: 15px;
}

.back-link:hover {
    text-decoration: underline;
}

/* ===========================
   MESSAGES
=========================== */
.success {
    color: green;
    margin-bottom: 10px;
    font-weight: bold;
}

.error {
    color: red;
    margin-bottom: 10px;
    font-weight: bold;
}

/* ===========================
   PAGE LAYOUT (Landing Pages)
=========================== */
.page-container {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
}

.section-card {
    background: rgb(255 255 255 / 50%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* ===========================
   GRID CARDS (Projects, Docs, Certs, Jobs)
=========================== */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.doc-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #e3e3e3;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: space-between;
}

.doc-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.doc-title {
    font-weight: bold;
    font-size: 0.98rem;
}

.doc-meta {
    font-size: 0.85rem;
    color: #666;
}

.doc-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.doc-body {
    min-height: 28px;
    display: flex;
    align-items: flex-start;
}

/* ===========================
   COLLAPSIBLE SECTIONS
=========================== */
.collapsible {
    padding: 0;
}

.collapse-header {
    padding: 20px 25px; 
    display: flex; 
    justify-content: space-between;
}

.collapse-header:hover {
    background: #f1f3f5;
    border-radius: 12px;
}

.collapse-icon {
    font-size: 1.4rem;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.collapse-content {
    display: none;
    padding: 20px 25px 30px;
    background: rgb(255 255 255 / 10%);
}

.collapsible.open .collapse-content {
    display: block;
}

.collapsible.open .collapse-icon {
    transform: rotate(45deg);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header h2 {
    margin: 0;
    text-align: center;
}

.view-all {
    font-size: 0.9rem;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.view-all:hover {
    text-decoration: underline;
}

.open-collapsible {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.open-collapsible:hover {
    text-decoration: underline;
}
.collapsible .collapse-content {
    display: none;
}

.collapsible.active .collapse-content {
    display: block;
}

/* ICONS */
.icons {
    font-size: 26px;
    line-height: 1;
    display: inline-block;
}

.login-page .footer {
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    bottom: 0;
    position: fixed;
    width: 100%;
}