/* crossweb-common.scss */

/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

main {
    background-color: #f4f7fa;
    color: #454545;
    padding: 20px;
    height: 100vh;
    line-height: 1.6;  
    font-family: lato, verdana;
}

/* Kontenery */
.container {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    position: relative;
}

/* Przyciski zamknięcia */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}

/* Logo */
.logo {
    width: 150px;
    margin-bottom: 20px;
}

/* Typografia */
h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Alerty i komunikaty */
.alert {
    border-radius: 4px;
    padding: 8px 12px;
    display: inline-block;
    margin-bottom: 15px;
    font-size: 14px;
    display: none;
}

.alert.error{
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-warning {
    background-color: #fffde7;
    color: #8a6d3b;
}

.alert-info {
    background-color: #e3f2fd;
    color: #0288d1;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

/* Flexbox layouts */
.flex-layout {
    display: flex;
    gap: 30px;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

/* Komponenty formularzy */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: #0077c2;
    outline: none;
}

input[disabled] {
    background-color: #f5f5f5;
    color: #666;
}
textarea {
    min-height: 100px;
    resize: vertical;
}

/* Checkbox i radio */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-container input {
    margin-right: 10px;
    margin-top: 3px;
}

/* Karty i boxy */
.card {
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card-light {
    background-color: #f9fbfd;
}

/* Przyciski */
.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: #0077c2;
    color: white;
}

.btn-primary:hover {
    background-color: #005fa3;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-full {
    width: 100%;
}

/* Linki */
.link {
    color: #0077c2;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* Pomocnicze */
.text-center {
    text-align: center;
}

.text-small {
    font-size: 12px;
}

.text-muted {
    color: #666;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }
.mb-5 { margin-bottom: 30px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mt-5 { margin-top: 30px; }

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-overlay.active {
    display: flex;
}

.popup-container {
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.popup-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.icon-loading {
    opacity: 0;
}


/* Media queries */
@media (max-width: 768px) {
    .flex-layout {
        flex-direction: column;
    }
    
    .container {
        padding: 20px;
    }
}