/* Czcionka Poppins - local fonts */
/* latin-ext */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    src: url(https://fonts.gstatic.com/s/poppins/v21/pxiByp8kv8JHgFVrLDz8Z1JlFd2JQEl8qw.woff2) format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    src: url(https://fonts.gstatic.com/s/poppins/v21/pxiByp8kv8JHgFVrLDz8Z1xlFd2JQEk.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfedw.woff2) format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJnecg.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    src: url(https://fonts.gstatic.com/s/poppins/v21/pxiByp8kv8JHgFVrLEj6Z1JlFd2JQEl8qw.woff2) format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    src: url(https://fonts.gstatic.com/s/poppins/v21/pxiByp8kv8JHgFVrLEj6Z1xlFd2JQEk.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    src: url(https://fonts.gstatic.com/s/poppins/v21/pxiByp8kv8JHgFVrLCz7Z1JlFd2JQEl8qw.woff2) format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    src: url(https://fonts.gstatic.com/s/poppins/v21/pxiByp8kv8JHgFVrLCz7Z1xlFd2JQEk.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Usuń podkreślenie ze wszystkich przycisków */
button {
    text-decoration: none !important;
}

button:hover,
button:focus,
button:active {
    text-decoration: none !important;
}

/* Główne style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Kontener główny */
#login-form, #dashboard, #edit-form {
    max-width: 600px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
    color: #4CAF50;
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 10px;
    text-align: center;
}

h2 {
    color: #333;
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 20px;
}

h3 {
    color: #555;
    font-weight: 600;
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
}

p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* Przyciski */
button {
    padding: 12px 24px;
    margin: 8px 5px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

button:active {
    transform: translateY(0);
}

.btn-logout {
    background: linear-gradient(135deg, #f44336 0%, #da190b 100%);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.btn-logout:hover {
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

/* Przycisk logowania - wyśrodkowany */
#login-form button {
    display: block;
    margin: 20px auto;
}

/* Wyśrodkowanie przycisku Google */
.g_id_signin {
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

#g_id_onload {
    display: none;
}

/* Formularze */
label {
    display: block;
    color: #555;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 14px;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Poppins', Arial, sans-serif;
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Pomocnicze klasy */
.hidden {
    display: none;
}

#login-status {
    color: #4CAF50;
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

/* Lista tagów - BEZ KROPEK */
#tags-list {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

/* ============================================= */
/* NOWY LAYOUT TAGÓW - ZAKTUALIZOWANY */
/* ============================================= */

.tag-item {
    background: white;
    padding: 0;
    margin: 20px 0;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.tag-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #4CAF50;
}

.tag-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tag-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tag-id {
    color: #666;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: 'Courier New', monospace;
}

.tag-pet-name {
    font-size: 22px;
    color: #333;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag-pet-type {
    font-size: 14px;
    color: #777;
    margin-top: 2px;
}

.tag-status {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #4CAF50;
    color: white;
    font-weight: 600;
    width: fit-content;
}

.tag-status.warning {
    background: #FF9800;
}

.tag-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px;
    background: #fafafa;
}

.tag-actions button {
    margin: 0;
    padding: 18px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
}

.tag-actions button i.material-icons {
    font-size: 22px;
}

.tag-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.tag-actions button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Przycisk Edytuj - Pomarańczowy */
.btn-edit {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #FB8C00 0%, #E65100 100%);
}

/* Przycisk Link - Niebieski - NAPRAWIONY */
.btn-link {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white !important;
    text-decoration: none !important;
}

.btn-link:hover {
    background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
    text-decoration: none !important;
    color: white !important;
}

.btn-link:focus,
.btn-link:active,
.btn-link:visited {
    color: white !important;
    text-decoration: none !important;
}

/* Przycisk Lokalizacja - Zielony */
.btn-location {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
}

.btn-location:hover:not(:disabled) {
    background: linear-gradient(135deg, #43A047 0%, #2E7D32 100%);
}

.btn-location:disabled {
    background: linear-gradient(135deg, #BDBDBD 0%, #9E9E9E 100%);
    opacity: 0.6;
    cursor: not-allowed;
    color: #fff;
}

/* Przycisk Usuń - Czerwony */
.btn-delete {
    background: linear-gradient(135deg, #f44336 0%, #D32F2F 100%);
    color: white;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
}

/* ============================================= */
/* STRONA KONTAKTOWA /tag - ULTRA MODERN */
/* ============================================= */

body.contact-view {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.contact-page {
    max-width: 440px;
    margin: 40px auto;
    background: #ffffff;
    padding: 0;
    border-radius: 40px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(100px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Hero section z avatarem */
.contact-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 30px 60px 30px;
    position: relative;
    text-align: center;
}

.contact-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: #ffffff;
    border-radius: 40px 40px 0 0;
}

.pet-avatar {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: bounce 2s ease-in-out infinite;
    border: 5px solid rgba(255, 255, 255, 0.3);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.contact-page h1 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 10px 0;
    opacity: 0.9;
    padding: 0;
    background: none;
}

.pet-name-hero {
    color: white;
    font-size: 32px;
    font-weight: 900;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* Zawartość */
.contact-info {
    background: #ffffff;
    padding: 20px 30px 40px 30px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.contact-info > h2,
.contact-info > h3,
.contact-info > p:first-child {
    display: none;
}

/* Status badge */
.status-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 30px 0;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge::before {
    content: '● ';
    color: #d1fae5;
}

/* Phone box - nowy design */
.phone-box {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 24px;
    padding: 0;
    margin: 0 0 15px 0;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.phone-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4);
}

.phone-box strong,
.phone-box .owner-name {
    display: none;
}

.phone-box::before {
    display: none;
}

.phone-box a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: 2px;
    padding: 25px;
    background: none;
    border-radius: 0;
    margin: 0;
    transition: all 0.3s ease;
}

.phone-box a::before {
    content: '📞';
    font-size: 32px;
    animation: ring 2s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-15deg); }
    20%, 40% { transform: rotate(15deg); }
}

.phone-box a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Owner info card */
.owner-info-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 24px;
    padding: 20px 25px;
    margin-bottom: 15px;
    border: 2px solid #bae6fd;
    display: flex;
    align-items: center;
    gap: 15px;
}

.owner-info-card::before {
    content: '👤';
    font-size: 32px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

.owner-info-card .owner-name {
    flex: 1;
    font-size: 20px;
    font-weight: 700;
    color: #0c4a6e;
    letter-spacing: 0.5px;
}

/* Message box - emotka po lewej wewnątrz */
.message-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 24px;
    padding: 25px 25px 25px 60px;
    margin: 15px 0;
    border: 2px solid #fcd34d;
    color: #78350f;
    line-height: 1.8;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    border-left: 4px solid #f59e0b;
}

.message-box::before {
    content: '💬';
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    font-size: 32px;
}

/* Thank you - naprawiony */
.thank-you {
    text-align: center;
    padding: 25px 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    margin: 30px 0 0 0;
    border-radius: 20px;
    border: 2px solid #86efac;
}

.thank-you p {
    color: #166534;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.6;
}

@keyframes celebrate {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(10deg); }
}

/* Tag nieaktywny - nowy design */
.inactive-tag {
    text-align: center;
    padding: 60px 30px;
}

.inactive-tag-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 50%;
    margin: 0 auto 25px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border: 3px solid #fecaca;
}

.inactive-tag h2 {
    color: #dc2626;
    background: none;
    padding: 0;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 800;
    border: none;
    box-shadow: none;
}

.inactive-tag p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.8;
    margin: 15px 0;
    font-weight: 500;
}

.inactive-tag button {
    margin-top: 30px;
    padding: 18px 45px;
    font-size: 16px;
    border-radius: 50px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    border: none;
    color: white;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.inactive-tag button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

/* Responsywność - ULEPSZONA */
@media (max-width: 600px) {
    body.contact-view {
        padding: 10px 0;
    }
    
    .contact-page {
        margin: 10px;
        border-radius: 30px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    }
    
    .contact-hero {
        padding: 35px 20px 50px 20px;
    }
    
    .contact-hero::after {
        height: 25px;
    }
    
    .pet-avatar {
        width: 90px;
        height: 90px;
        font-size: 45px;
        border: 4px solid rgba(255, 255, 255, 0.3);
    }
    
    .contact-page h1 {
        font-size: 14px;
        letter-spacing: 2px;
        margin-bottom: 8px;
    }
    
    .pet-name-hero {
        font-size: 24px;
        letter-spacing: 0.5px;
    }
    
    .contact-info {
        padding: 15px 20px 30px 20px;
    }
    
    .status-badge {
        font-size: 11px;
        padding: 6px 16px;
        margin-bottom: 20px;
    }
    
    .phone-box {
        border-radius: 20px;
        margin-bottom: 12px;
    }
    
    .phone-box a {
        font-size: 22px;
        letter-spacing: 1.5px;
        padding: 18px 15px;
        gap: 10px;
    }
    
    .phone-box a::before {
        font-size: 28px;
    }
    
    .owner-info-card {
        padding: 15px 20px;
        border-radius: 20px;
        margin-bottom: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .owner-info-card::before {
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
    
    .owner-info-card .owner-name {
        font-size: 18px;
        text-align: center;
        width: 100%;
        margin-top: 8px;
    }
    
    .message-box {
        padding: 30px 20px 20px 20px;
        font-size: 14px;
        border-radius: 20px;
        margin: 12px 0;
        line-height: 1.7;
    }
    
    .message-box::before {
        font-size: 28px;
        top: -14px;
        right: 15px;
        left: auto;
        transform: none;
    }
    
    .thank-you {
        padding: 25px 20px 30px 20px;
        margin: 20px 0 0 0;
        border-radius: 18px;
    }
    
    .thank-you p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Inactive tag - mobile */
    .inactive-tag {
        padding: 50px 25px;
    }
    
    .inactive-tag-icon {
        width: 70px;
        height: 70px;
        font-size: 35px;
        margin-bottom: 20px;
    }
    
    .inactive-tag h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .inactive-tag p {
        font-size: 14px;
        line-height: 1.7;
        margin: 12px 0;
    }
    
    .inactive-tag button {
        margin-top: 25px;
        padding: 15px 35px;
        font-size: 14px;
        border-radius: 40px;
    }
    
    /* Wyłącz animacje na mobile */
    .pet-avatar {
        animation: none;
    }
    
    .phone-box a::before {
        animation: none;
    }
}

/* Bardzo małe ekrany (iPhone SE, etc.) */
@media (max-width: 375px) {
    .contact-page {
        margin: 5px;
        border-radius: 25px;
    }
    
    .contact-hero {
        padding: 30px 15px 45px 15px;
    }
    
    .pet-avatar {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }
    
    .contact-page h1 {
        font-size: 12px;
        letter-spacing: 1.5px;
    }
    
    .pet-name-hero {
        font-size: 20px;
    }
    
    .contact-info {
        padding: 15px 15px 25px 15px;
    }
    
    .phone-box a {
        font-size: 20px;
        letter-spacing: 1px;
        padding: 16px 12px;
    }
    
    .phone-box a::before {
        font-size: 24px;
    }
    
    .owner-info-card .owner-name {
        font-size: 16px;
    }
    
    .message-box {
        padding: 28px 18px 18px 18px;
        font-size: 13px;
    }
    
    .thank-you {
        padding: 20px 15px 25px 15px;
    }
    
    .thank-you p {
        font-size: 13px;
    }
}

/* Landscape mode na telefonach */
@media (max-width: 900px) and (max-height: 500px) {
    .contact-page {
        margin: 10px auto;
        max-width: 600px;
    }
    
    .contact-hero {
        padding: 25px 30px 35px 30px;
    }
    
    .pet-avatar {
        width: 70px;
        height: 70px;
        font-size: 35px;
        margin-bottom: 10px;
    }
    
    .contact-page h1 {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .pet-name-hero {
        font-size: 22px;
    }
    
    .contact-info {
        padding: 15px 25px 25px 25px;
    }
}

/* Emoji w nagłówkach */
h1 {
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ładne scrollbar (dla Chrome/Edge) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #45a049;
}

/* Ekran ładowania */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loading-screen p {
    color: white;
    font-size: 18px;
    margin-top: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Bootstrap Modal Styles */
.modal-confirm {        
    color: #636363;
    width: 400px;
    margin: 30px auto;
}

.modal-confirm .modal-content {
    padding: 20px;
    border-radius: 5px;
    border: none;
}

.modal-confirm .modal-header {
    border-bottom: none;   
    position: relative;
}

/* Napraw modalne - wyśrodkuj tytuły */
.modal-header {
    text-align: center;
    display: block;
}

.modal-title {
    width: 100%;
    text-align: center;
}

.modal-confirm h4 {
    text-align: center;
    font-size: 26px;
    margin: 30px 0 -15px;
}

.modal-confirm .close {
    position: absolute;
    top: -5px;
    right: -5px;
}

.modal-confirm .modal-footer {
    border: none;
    text-align: center;
    border-radius: 5px;
    font-size: 13px;
    padding: 10px 15px 25px;
}

.modal-confirm .modal-footer button {
    min-width: 100px;
}

.modal-confirm .icon-box {
    color: #fff;        
    position: absolute;
    margin: 0 auto;
    left: 0;
    right: 0;
    top: -70px;
    width: 95px;
    height: 95px;
    border-radius: 50%;
    z-index: 9;
    background: #82ce34;
    padding: 15px;
    text-align: center;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
}

.modal-confirm .icon-box.icon-warning {
    background: #ff9800;
}

.modal-confirm .icon-box i {
    font-size: 58px;
    position: relative;
    top: 3px;
}

.modal-confirm.modal-dialog {
    margin-top: 80px;
}

.modal-confirm .btn {
    color: #fff;
    border-radius: 4px;
    background: #82ce34;
    text-decoration: none;
    transition: all 0.4s;
    line-height: normal;
    min-height: 40px;
    border: none;
    min-width: 120px;
    margin: 0 5px;
}

.modal-confirm .btn-success:hover, .modal-confirm .btn-success:focus {
    background: #6fb32b;
    outline: none;
}

.modal-confirm .btn-danger {
    background: #f44336;
}

.modal-confirm .btn-danger:hover, .modal-confirm .btn-danger:focus {
    background: #da190b;
}

.modal-confirm .btn-default {
    background: #999;
}

.modal-confirm .btn-default:hover {
    background: #888;
}

/* Poprawka dla przycisku Google Maps w modalu lokalizacji */
#open-maps-link.btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: normal;
    padding: 10px 15px;
    min-height: 40px;
}

/* ============================================= */
/* RESPONSYWNOŚĆ */
/* ============================================= */

@media (max-width: 768px) {
    .tag-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .tag-pet-name {
        font-size: 20px;
    }
    
    .tag-actions button {
        padding: 16px 18px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    #login-form, #dashboard, #edit-form {
        padding: 25px;
        margin: 20px auto;
    }
    
    h1 {
        font-size: 26px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    button {
        width: 100%;
        margin: 8px 0;
    }
    
    /* Bootstrap Modal - responsywność */
    .modal-confirm {
        width: 90% !important;
        margin: 20px auto !important;
    }
    
    .modal-confirm .modal-content {
        padding: 15px;
    }
    
    .modal-confirm h4 {
        font-size: 22px;
        margin: 25px 0 -10px;
    }
    
    .modal-confirm .icon-box {
        width: 80px;
        height: 80px;
        top: -60px;
    }
    
    .modal-confirm .icon-box i {
        font-size: 48px;
    }
    
    .modal-confirm .modal-body {
        padding: 20px 10px;
    }
    
    .modal-confirm .modal-body p {
        font-size: 15px;
    }
    
    .modal-confirm .modal-footer {
        padding: 10px 10px 20px;
    }
    
    .modal-confirm .modal-footer button,
    .modal-confirm .modal-footer a {
        width: 100%;
        margin: 5px 0;
        min-width: auto;
    }
    
    .modal-confirm.modal-dialog {
        margin-top: 50px;
    }
    
    /* Modal lokalizacji - mapa */
    #locationModal .modal-dialog {
        width: 95% !important;
        margin: 10px auto !important;
    }
    
    #map-container {
        height: 300px !important;
    }
    
    #location-info p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tag-actions button {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .tag-pet-name {
        font-size: 18px;
    }
}

/* Intl-tel-input custom styles */
.iti {
    width: 100%;
    margin-bottom: 20px;
    display: block;
}

.iti__flag-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    padding: 0;
}

.iti__selected-flag {
    padding: 0 8px 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
}

.iti__country-list {
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    border: 2px solid #ddd;
}

/* Pole input telefonu */
.iti input[type="tel"],
.iti input.iti__tel-input {
    width: 100%;
    padding: 12px 15px 12px 100px !important;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
}

.iti__selected-flag:hover {
    background: rgba(0, 0, 0, 0.05);
}

.iti__flag {
    margin-right: 8px;
}

.iti__selected-dial-code {
    margin-left: 5px;
    color: #666;
    font-weight: 600;
}
