* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    background: url('img/build.jpg') no-repeat center center fixed;
    background-size: cover;
}

.header {
    background-color: #254381;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    height: 50px;
    width: auto;
}

.header-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 400;
}

.header-right {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 1px;
    cursor: pointer;
    padding-bottom: 4px;
    box-sizing: border-box;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
    display: inline-block;
    vertical-align: middle;
}

.nav-link.active {
    border-bottom: solid #ffffff;
}

.nav-link:hover {
    border-bottom: solid rgba(255, 255, 255, 0.5);
}

.nav-link-button {
    color: #ffffff;
    background-color: #254381;
    text-decoration: none;
    letter-spacing: 1px;
    cursor: pointer;
    padding-bottom: 4px;
    box-sizing: border-box;
    border: none;
    border-bottom: 3px solid transparent;
    transition: border-color 0.2s;
}

.nav-link-button.active {
    border-bottom: solid #ffffff;
}

.nav-link-button:hover {
    border-bottom: solid rgba(255, 255, 255, 0.5);
}

.main {
    position: relative;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
}

.main-top {
    justify-content: flex-start;
    padding-top: 30px;
}

.university-name {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    max-width: 650px;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.register-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.login-box {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 25px 28px;
    width: 340px;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    margin-bottom: 15px;
}

.form-group label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.required {
    color: #ff5252;
}

.form-group input {
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    color: #ffffff;
    width: 100%;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(37, 67, 129, 0.4);
}

.form-group input:focus {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(37, 67, 129, 0.5), 0 0 0 3px rgba(37, 67, 129, 0.15);
}

.login-btn {
    background-color: #254381;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    width: 100%;
}

.login-btn:hover {
    background-color: #1f386b;
    box-shadow: 0 0 25px rgba(37, 67, 129, 0.6);
    transform: translateY(-2px);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 10px rgba(37, 67, 129, 0.4);
}

.form-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.form-link {
    color: #6db3f2;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s;
}

.form-link:hover {
    color: #b388eb;
}

@media (min-width: 1400px) {
    .header {
        height: 120px;
        padding: 0 60px;
    }

    .logo {
        height: 60px;
    }

    .header-title {
        font-size: 22px;
    }

    .nav-link {
        font-size: 17px;
    }

    .main {
        min-height: calc(100vh - 120px);
        gap: 20px;
    }

    .university-name {
        font-size: 24px;
        max-width: 750px;
    }

    .login-box {
        width: 360px;
        padding: 30px 35px;
        gap: 18px;
    }

    .form-group input {
        height: 44px;
    }
}

@media (max-width: 600px) {
    .header {
        height: 60px;
        padding: 0 8px;
    }

    .logo {
        height: 24px;
    }

    .header-left {
        gap: 6px;
    }

    .header-title {
        font-size: 11px;
    }

    .header-right {
        gap: 6px;
    }

    .nav-link {
        font-size: 10px;
        letter-spacing: 0;
        padding-bottom: 2px;
    }

    .university-name {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .register-title {
        font-size: 16px;
    }

    .login-box {
        width: 100%;
        padding: 20px 16px;
    }

    .form-links {
        gap: 12px;
    }

    .form-link {
        font-size: 11px;
    }

    .content-box {
        padding: 20px 16px;
    }

    .resource-text {
        font-size: 13px;
    }

    .resource-link {
        font-size: 13px;
    }

    .action-icon {
        width: 26px;
        height: 26px;
    }

    .action-icon svg {
        width: 13px;
        height: 13px;
    }

    .resource-actions {
        gap: 4px;
    }
}

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.40) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dashboard-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.content-box {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 30px 35px;
    width: 500px;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

.content-box.dashboard-box {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-box.main-box {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: auto;
    min-width: 300px;
    max-width: 500px;
    padding: 25px 30px;
}

.user-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
}

.resources-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    margin-top: 4px;
}

.centered-title {
    text-align: center;
}

.resources-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resource-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.resource-text {
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
}

.content-box.dashboard-box .resource-text {
    color: #6db3f2;
}

.content-box.dashboard-box .ritm-text {
    color: #a8a7a7;
}

.resource-link {
    color: #6db3f2;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.2s;
}

.resource-link:hover {
    color: #b388eb;
}

.resource-link-button {
    color: #6db3f2;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    transition: color 0.2s;
}

.resource-link-button:hover {
    color: #b388eb;
}

.centered-list {
    align-items: center;
}

.resource-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.action-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.action-icon svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2;
}

.add-icon {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.add-icon:hover {
    background: rgba(255, 255, 255, 0.3);
}

.edit-icon {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.edit-icon:hover {
    background: rgba(255, 255, 255, 0.3);
}

.delete-icon {
    background: rgba(255, 80, 80, 0.2);
    border: 1px solid rgba(255, 80, 80, 0.3);
}

.delete-icon:hover {
    background: rgba(255, 80, 80, 0.4);
}
.eye-icon {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-left: 10px;
}

.eye-icon:hover {
    background: rgba(255, 255, 255, 0.3);
}

