body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #f4f7f6;
    color: #222;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

#login-wrapper {
    display: flex; 
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f4f7f6; 
    padding: 20px;
    box-sizing: border-box;
}

.login-container {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.login-container h1 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    border-bottom: none; 
    padding-bottom: 0;
}

.login-container p {
    text-align: center;
    color: #555;
    margin-bottom: 30px;
    font-size: 1rem;
}

#login-form .form-group {
    margin-bottom: 20px; 
}

#login-form input[type="text"],
#login-form input[type="password"] {
    width: 100%; 
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px; 
    font-size: 1rem;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box; 
}

#login-form input[type="text"]:focus,
#login-form input[type="password"]:focus {
    border-color: #ffd166;
    box-shadow: 0 0 5px rgba(255, 209, 102, 0.3);
    outline: none;
}

#login-form label {
     display: block; 
     text-align: left; 
     margin-bottom: 8px;
     font-weight: 500;
     color: #555;
     font-size: 0.95rem;
}


#login-error-msg {
    color: #dc3545; 
    font-size: 0.9rem;
    margin-top: -10px; 
    margin-bottom: 20px; 
    text-align: left; 
}

#login-form .save-btn {
    width: 100%; 
    padding: 12px 25px;
    border-radius: 8px; 
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 10px; 
}

#admin-info {
    margin-top: 30px;
    font-size: 0.85rem;
    color: #666;
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    padding: 15px;
    border-radius: 8px;
    text-align: left;
}

#admin-info p {
     margin: 5px 0;
     padding: 0;
     text-align: left; 
     font-size: 0.85rem;
}

#admin-info code {
    background-color: #e9ecef;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}


.page-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    width: 240px;
    background-color: #222;
    color: white;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: width 0.3s ease;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar nav li {
    margin-bottom: 5px;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    transition: background-color 0.2s ease, padding 0.3s ease;
    font-size: 1rem;
    border-radius: 0 25px 25px 0;
    margin-right: 10px;
}

.sidebar nav a:hover {
    background-color: #444;
    color: #eee;
}

.menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    color: #ffd166;
    transition: margin-right 0.3s ease;
}

.menu-text {
    flex-grow: 1;
    transition: opacity 0.3s ease;
}

.main-content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    transition: margin-left 0.3s ease;
}

.container {
    max-width: 900px;
    margin: 2em auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

h1 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.pet-profile {
    background: #fff;
    border: none;
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    margin: auto;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pet-profile h2 {
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #333;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
    width: 100%;
}

.avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    border: 3px solid #ffd166;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.avatar img, .avatar svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-btn {
    background-color: #ffd166;
    color: #222;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
    font-weight: 500;
    text-transform: uppercase;
}

.upload-btn:hover {
    background-color: #ffc34d;
    transform: translateY(-1px);
}

.upload-btn:active {
    transform: translateY(0);
}

.pet-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea,
.form-group select,
.form-group input[type="date"],
.form-group input[type="tel"] {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px; 
    font-size: 1rem;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box; 
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus,
.form-group select:focus,
.form-group input[type="date"]:focus,
.form-group input[type="tel"]:focus {
    border-color: #ffd166;
    box-shadow: 0 0 5px rgba(255, 209, 102, 0.3);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.save-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
    align-self: center;
    margin-top: 20px;
}

.save-btn:hover {
    background-color: #45a049;
    transform: translateY(-1px);
}
.save-btn:active {
    transform: translateY(0);
}

.panel-pet-display {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: auto;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.panel-avatar-container {
    flex-shrink: 0;
    width: 120px;
    display: flex;
    justify-content: center;
}

.panel-avatar-container .avatar {
     width: 120px;
     height: 120px;
     border-radius: 50%;
     overflow: hidden;
     background-color: #eee;
     display: flex;
     justify-content: center;
     align-items: center;
     border: 3px solid #ffd166;
     box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.panel-avatar-container .avatar img,
.panel-avatar-container .avatar svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-info {
    flex-grow: 1;
    min-width: 200px;
}

.panel-info h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5rem;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
}

.panel-info p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

.panel-info p strong {
    color: #222;
}

.panel-info p a.panel-button {
    display: inline-block;
    margin-left: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: normal;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.panel-info p a.panel-button:hover {
    opacity: 0.9;
    text-decoration: none;
}

.panel-info p a.whatsapp-button {
    background-color: #25D366;
    color: white;
}

.panel-info p a.location-button {
    background-color: #4285F4;
    color: white;
}

.panel-info p.lost-status {
    font-size: 1.1rem;
    font-weight: bold;
    color: #dc3545;
    margin-top: 0;
    margin-bottom: 20px;
    padding: 10px;
    border: 2px solid #dc3545;
    border-radius: 8px;
    background-color: #f8d7da;
    display: flex;
    align-items: center;
    justify-content: center;
}

#panel-no-data {
    text-align: center;
    color: #555;
    width: 100%;
    padding: 30px;
}

#gallery-section, #docs-section, #settings-section, #users-section {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 2em auto;
}

#gallery-upload, #docs-upload {
    display: block;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

#gallery-previews {
    margin-top: 20px;
    border-top: 1px dashed #eee;
    padding-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

#docs-list {
     margin-top: 20px;
     border-top: 1px dashed #eee;
     padding-top: 15px;
}

#docs-list div {
     padding: 10px;
     background-color: #e9ecef;
     border-left: 4px solid #007bff;
     margin-bottom: 10px;
     border-radius: 4px;
     color: #333;
     word-break: break-all;
}

#settings-form, .simple-form, #admin-settings-form {
    max-width: 400px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#user-list {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

.user-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    word-break: break-all;
    font-size: 0.95rem;
}

.user-entry span {
     flex-grow: 1; 
     margin-right: 10px; 
     word-break: break-word; 
}

.user-entry button.delete-user-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.user-entry button.delete-user-btn:hover {
     background-color: #c82333;
     transform: translateY(-1px);
}
.user-entry button.delete-user-btn:active {
     transform: translateY(0);
}

.user-entry-clickable {
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.user-entry-clickable:hover {
    background-color: #e9ecef; 
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.9); 
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85%; 
    object-fit: contain; 
}

.modal-document-content {
    margin: auto;
    display: none; 
    width: 80%; 
    max-width: 600px; 
    background-color: #fefefe;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: #333;
    text-align: center;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px; 
}

.modal-content, #caption, .modal-document-content {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 1001; 
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
    .modal {
         padding-top: 15px; 
    }
     .close {
         top: 5px;
         right: 15px;
         font-size: 30px;
     }
}

@media (max-width: 768px) {
    .page-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 60px;
        padding: 10px 0;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        height: 100vh;
        overflow-y: auto;
        z-index: 200;
    }

    .sidebar nav a {
        justify-content: center;
        padding: 15px 0;
        margin-right: 0;
        border-radius: 0;
    }

    .menu-icon {
        margin-right: 0;
    }

    .menu-text {
        display: none;
        opacity: 0;
    }

    .main-content {
        margin-left: 60px;
        padding: 10px;
    }

    .container {
        margin: 1em auto;
        padding: 15px;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .pet-profile, .panel-pet-display, #gallery-section, #docs-section, #settings-section, #users-section {
         padding: 20px;
         max-width: 95%;
         box-sizing: border-box;
    }

    .panel-pet-display {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .panel-avatar-container {
        width: 100%;
        margin-bottom: 0;
    }

    .panel-info {
        width: 100%;
        min-width: auto;
    }

    .panel-info p {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .panel-info p strong {
         margin-bottom: 5px;
     }
    .panel-info p a.panel-button {
        margin-left: 0;
        margin-top: 5px;
    }
     .panel-info p.lost-status {
          flex-direction: column;
          text-align: center;
          padding: 8px;
          font-size: 1rem;
          margin-top: 0;
          margin-bottom: 15px;
     }
     .lost-toggle-label {
         width: 100%;
         min-width: auto;
         padding: 10px 15px;
         font-size: 0.9rem;
     }
    .modal-content {
        max-width: 95%;
        max-height: 80%;
    }
    .modal-document-content {
        width: 90%;
    }
}

.shared-view .sidebar {
    display: none !important;
}

.shared-view .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.shared-view .container {
     width: 100%;
     max-width: 700px;
     margin: 0 auto;
     box-shadow: none;
     padding: 0;
     background: none;
}

.shared-view .content-section {
    display: none !important;
}

.shared-view #panel-section {
    display: block !important;
    width: 100%;
    padding: 0;
    background: none;
    box-shadow: none;
}

.shared-view #panel-section h1 {
    display: none;
}

.shared-view .panel-pet-display {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 2em auto;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.shared-view .panel-pet-display .panel-avatar-container {
    flex-shrink: 0; 
     width: 150px;
    height: 150px;
}

.shared-view .panel-pet-display .panel-avatar-container .avatar {
     width: 100%;
     height: 100%;
     border: 3px solid #ffd166;
     border-radius: 50%; 
     overflow: hidden;
     background-color: #eee;
     display: flex;
     justify-content: center;
     align-items: center;
     box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.shared-view .panel-pet-display .panel-avatar-container .avatar img,
.shared-view .panel-pet-display .panel-avatar-container .avatar svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shared-view .panel-pet-display .panel-info {
    width: 100%;
    min-width: auto;
    text-align: center;
}

.shared-view .panel-pet-display .panel-info h2 {
     text-align: center;
     font-size: 1.8rem; 
     margin-top: 0;
     margin-bottom: 20px;
     border-bottom: 1px dashed #eee;
     padding-bottom: 10px;
}

.shared-view .panel-pet-display .panel-info p {
    text-align: left;
    align-items: center;
    justify-content: center;
    display: flex; 
    flex-wrap: wrap; 
    margin-bottom: 12px; 
}

.shared-view .panel-pet-display .panel-info p strong {
     min-width: 120px;
     display: inline-block;
     margin-right: 10px;
     flex-shrink: 0; 
     text-align: right; 
     padding-right: 10px; 
     position: relative;
}

.shared-view .panel-pet-display .panel-info p strong::after {
    content: ':';
    position: absolute;
    right: 0;
    color: #555; 
}

.shared-view .panel-pet-display .panel-info p a.panel-button {
        margin-left: 0;
        margin-top: 5px;
        flex-grow: 1; 
        text-align: center;
    }

.shared-view #share-pet-btn {
    display: none; 
}

.shared-view .panel-pet-display .panel-info p.lost-status {
     flex-direction: column; 
     text-align: center;
     padding: 15px; 
     font-size: 1.2rem; 
     margin-top: 0; 
     margin-bottom: 30px; 
}

@media (max-width: 768px) {
     #clients-section {
         padding: 15px;
     }
     .pet-card-container {
         grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
         gap: 10px;
         padding-top: 10px;
     }
    .pet-card {
        padding: 10px;
        gap: 10px;
        flex-direction: column; 
        text-align: center; 
    }
     .pet-card-avatar {
         width: 50px;
         height: 50px;
         margin-bottom: 5px;
     }
    .pet-card-info h3 {
        font-size: 1rem;
        margin-bottom: 2px;
        white-space: normal; 
        overflow: visible;
        text-overflow: clip;
    }
    .pet-card-info p {
        font-size: 0.85rem;
         white-space: normal; 
         overflow: visible;
         text-overflow: clip;
    }
     .pet-card-info {
         width: 100%; 
     }
    .shared-view .panel-pet-display .panel-info p strong {
          min-width: auto; 
          width: 100%; 
          text-align: center; 
          padding-right: 0; 
          margin-right: 0; 
          margin-bottom: 5px; 
          position: static; 
     }
     .shared-view .panel-pet-display .panel-info p strong::after {
         content: ''; 
     }
     .shared-view .panel-pet-display .panel-info p {
         flex-direction: column; 
         align-items: center; 
     }
}

#clients-section {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    max-width: 900px; 
    margin: 2em auto;
}

#clients-section h1 {
     text-align: center;
     font-size: 2rem;
     font-weight: 600;
     color: #333;
     margin-bottom: 2rem;
     border-bottom: 1px solid #eee;
     padding-bottom: 1rem;
}

#clients-section h2 { 
     margin-top: 0;
     margin-bottom: 20px;
     font-size: 1.5rem;
     color: #333;
     border-bottom: 1px dashed #eee;
     padding-bottom: 10px;
}

.pet-card-container {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 20px; 
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #eee;
}

.pet-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    display: flex; 
    align-items: center;
    gap: 15px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none; 
    color: inherit; 
}

.pet-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pet-card-avatar {
    flex-shrink: 0; 
     width: 60px;
    height: 60px;
}

.pet-card-avatar .avatar {
     width: 100%;
     height: 100%;
     border: 2px solid #ffd166; 
}

.pet-card-info {
    flex-grow: 1; 
    min-width: 0; 
}

.pet-card-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #333;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.pet-card-info p {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pet-card-info p strong {
    color: #222;
}

.pet-card-info a.panel-button.small {
    padding: 2px 5px;
    font-size: 0.75rem;
    margin-left: 5px;
    border-radius: 3px;
    vertical-align: middle;
}

.pet-card.lost {
    border-left: 5px solid #dc3545; 
}

.pet-card.lost .pet-card-info h3 {
    color: #dc3545; 
}

.modal-document-content .modal-pet-card-container {
    width: 100%;
    max-width: 400px; 
    margin: 20px auto; 
    padding: 0; 
    box-sizing: border-box;
    display: flex; 
    flex-direction: column;
    align-items: center; 
}

.modal-document-content .pet-card {
    background-color: #f8f9fa; 
    border: 1px solid #dee2e6; 
    border-radius: 8px;
    padding: 20px; 
    display: flex;
    flex-direction: column; 
    align-items: center; 
    gap: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: none; 
    width: 100%; 
    max-width: 350px; 
}

.modal-document-content .pet-card:hover {
    transform: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.modal-document-content .pet-card-avatar {
    flex-shrink: 0;
    width: 100px; 
    height: 100px;
}

.modal-document-content .pet-card-avatar .avatar {
     width: 100%;
     height: 100%;
     border: 3px solid #ffd166; 
}

.modal-document-content .pet-card-info {
    flex-grow: 0; 
    min-width: 0;
    width: 100%; 
    text-align: center; 
}

.modal-document-content .pet-card-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    color: #333;
    white-space: normal; 
    overflow: visible;
    text-overflow: clip;
}

.modal-document-content .pet-card-info p {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #555;
    white-space: normal; 
    overflow: visible;
    text-overflow: clip;
    line-height: 1.4;
}

.modal-document-content .pet-card-info p strong {
    color: #222;
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 10px;
    margin-bottom: 0;
    text-align: left;
}

.success-message {
    color: #28a745;
    font-size: 0.9rem;
    margin-top: 10px;
    margin-bottom: 0;
    text-align: left;
}

@media (max-width: 768px) {
     .modal-document-content {
         width: 95%; 
         padding: 20px;
     }
     .modal-document-content .modal-pet-card-container {
         max-width: 90%; 
         margin: 10px auto;
     }
     .modal-document-content .pet-card {
         padding: 15px;
         max-width: 300px;
     }
     .modal-document-content .pet-card-avatar {
         width: 80px;
         height: 80px;
     }
     .modal-document-content .pet-card-info h3 {
         font-size: 1.1rem;
     }
     .modal-document-content .pet-card-info p {
         font-size: 0.9rem;
     }
}

.form-group.lost-status-group {
    margin-top: 30px; 
    padding-top: 20px;
    border-top: 1px dashed #eee; 
}

.form-group.lost-status-group label {
     font-size: 1rem; 
     font-weight: 600;
     color: #222;
     margin-bottom: 15px;
}

.lost-toggle-container {
    display: flex;
    justify-content: center; 
}

.lost-toggle-label {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px; 
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.2s ease;
    user-select: none; 
    text-align: center;
    min-width: 200px; 
    box-sizing: border-box;
}

.lost-toggle-label .toggle-off,
.lost-toggle-label .toggle-on {
    display: inline-block; 
}

.lost-toggle-label .toggle-on {
    display: none; 
}

#pet-lost:checked + .lost-toggle-label {
    background-color: #dc3545; 
    color: white; 
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3); 
}

#pet-lost:checked + .lost-toggle-label .toggle-off {
    display: none; 
}

#pet-lost:checked + .lost-toggle-label .toggle-on {
    display: inline-block; 
     font-weight: 700; 
     animation: pulse 1.5s infinite; 
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.lost-toggle-label {
    background-color: #e9ecef; 
    color: #555; 
    border: 1px solid #dee2e6;
}

.lost-toggle-label:hover {
    background-color: #dee2e6;
}

.shared-view .panel-pet-display .panel-info p.lost-status {
    flex-direction: column;
    text-align: center;
    padding: 15px;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 20px;
}