:root {
    --primary-dark: #1A3A53; /* Ciemny niebiesko-zielony z logo */
    --primary-accent: #00A0B0; /* Jasny turkusowy z logo */
    --primary-light: #f4f7f6; /* Jasne tło */
    --text-light: #ffffff;
    --text-dark: #333333;
    --danger-color: #dc3545;
    --danger-hover: #c82333;
    --success-color: #28a745;
    --success-hover: #1e7e34;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--primary-light);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-size: 16px;
}

.container {
    background-color: var(--text-light);
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 800px;
    text-align: center;
}

header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: var(--primary-dark);
    margin: 0;
    font-size: 2em;
    margin-left: 15px;
}

#logo {
    height: 50px;
    width: auto;
}

.password-button, /* Używane przez logoutBtn */
.add-btn {
    color: var(--text-light);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.password-button {
    background-color: var(--primary-accent); /* Przycisk wyloguj */
}
.password-button:hover {
    background-color: var(--primary-dark);
}

.add-btn {
    background-color: var(--primary-accent); /* Główne przyciski akcji */
}

.add-btn:hover {
    background-color: var(--primary-dark);
}

.client-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.client-list-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: var(--text-dark);
}

.client-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.client-list li {
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.client-list li:hover {
    background-color: #f1f1f1;
}

.client-list li span {
    font-size: 1.1em;
}

.client-actions button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    font-size: 1em;
    transition: color 0.3s ease;
}

.client-actions .delete-btn {
    color: var(--danger-color);
}

.client-actions .delete-btn:hover {
    color: var(--danger-hover);
}

footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #777;
}

/* Modal Styles */
.modal {
    display: none; /* Ukryty domyślnie */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex; /* Pokazany, gdy ma klasę active */
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 450px;
    position: relative;
    text-align: left;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-dark);
    font-size: 1.5em;
    text-align: center;
}

.modal-content input[type="text"],
.modal-content input[type="password"] {
    width: calc(100% - 22px); /* Adjust width for padding and border */
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.modal-content .add-btn { /* Przyciski w modalach */
    background-color: var(--primary-accent);
    color: var(--text-light);
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
}

.modal-content .add-btn:hover {
    background-color: var(--primary-dark);
}

.message {
    margin-top: 15px;
    font-size: 0.9em;
    text-align: center;
}

.message.success {
    color: var(--success-color);
}

.message.error {
    color: var(--danger-color);
}

.auth-switch a {
    color: var(--primary-accent);
    text-decoration: none;
}

.auth-switch a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Dodajmy też styl dla przycisku "Połącz z Google Search Console", aby odróżnić go lekko, jeśli chcesz */
#connectGSCBtn {
    background-color: #4285F4; /* Google Blue */
}

#connectGSCBtn:hover {
    background-color: #357ae8;
}

/* Responsywność */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    header h1 {
        font-size: 1.5em;
    }

    .client-list-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .client-list-header .add-btn {
        margin-top: 10px;
        width: 100%;
    }

    .modal-content {
        width: 95%;
    }
} 