* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #08111f, #132943);
    color: white;
}

.projects-page {
    min-height: 100vh;
    padding: 40px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 46px;
}

.top-bar h1 {
    margin: 0;
    font-size: 38px;
}

.top-bar p {
    margin: 8px 0 0;
    color: #9fb0c3;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 270px));
    gap: 18px;
}

.project-card {
    min-height: 172px;
    padding: 21px;
    background: rgba(16, 28, 44, 0.96);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project-card.active {
    cursor: pointer;
}

.project-card.active:hover {
    transform: translateY(-4px);
    border-color: #2f80ed;
}

.project-card.disabled {
    opacity: 0.45;
    filter: grayscale(1);
    cursor: not-allowed;
}

.project-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.project-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
    text-align: center;
}

.project-card p {
    margin: 0 0 18px;
    color: #a9b7c6;
    font-size: 13px;
}

.status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: bold;
}

.ready {
    background: rgba(47, 128, 237, 0.18);
    color: #7db4ff;
    font-size: 12.5px;
    padding: 6.25px 11.25px;
}

.progress {
    background: rgba(255, 193, 7, 0.16);
    color: #ffd666;
}

footer {
    margin-top: 60px;
    color: #73869c;
    font-size: 13px;
}

/* ==== Karta logowania (moduł w tym samym rzędzie) ==== */
.login-form-inline {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.login-form-inline input {
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid #31465c;
    border-radius: 10px;
    background: #0b1624;
    color: #ffffff;
    font-size: 14px;
    outline: none;
}

.login-form-inline input:focus {
    border-color: #2f80ed;
}

.login-form-inline .error-message {
    min-height: 18px;
    margin: 0 0 8px;
    color: #ff6b6b;
    font-size: 13px;
}

.login-form-inline button {
    padding: 13px;
    border: 0;
    border-radius: 10px;
    background: #2f80ed;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.login-form-inline button:hover {
    background: #1f6fd1;
}

/* ==== Konto zalogowanego użytkownika (prawy górny róg) ==== */
.account-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.account-status {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.4;
}

.account-status-label {
    color: #9fb0c3;
    font-size: 14px;
}

.account-status-name {
    color: white;
    font-size: 17px;
}

.account-menu-wrapper {
    position: relative;
}

.button {
    background-color: #ffffff00;
    color: #fff;
    width: 8.5em;
    height: 2.9em;
    border: #3654ff 0.2em solid;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8em;
    transition: all 0.6s ease;
}

.button:hover {
    background-color: #3654ff;
    cursor: pointer;
}

.button svg {
    width: 1.5em;
    transition: all 0.6s ease;
}

.button:hover svg {
    transform: translateX(3px);
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 100%;
    background: #12243a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
    z-index: 10;
}

.account-dropdown.hidden {
    display: none;
}

.account-dropdown button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: 0;
    color: #c7d3df;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.account-dropdown button:hover {
    background: #2f80ed;
    color: white;
}

/* ==== Dane kontaktowe (róg strony) ==== */
.contact-box {
    position: fixed;
    right: 16px;
    bottom: 12px;
    text-align: right;
    line-height: 1.5;
    color: #9fb0c3;
    font-size: 12px;
}