
:root {

    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #ffecd2;
    --accent-secondary: #fcb69f;
    --background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --text-color: #333;
    --text-light: white;
    --shadow-primary: rgba(102, 126, 234, 0.4);
    --shadow-accent: rgba(252, 182, 159, 0.4);
    --modal-bg: rgba(0, 0, 0, 0.8);
}


[data-theme="light-blue"] {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #ffecd2;
    --accent-secondary: #fcb69f;
}

[data-theme="light-green"] {
    --primary-color: #56ab2f;
    --secondary-color: #a8e6cf;
    --accent-color: #ffd3a5;
    --accent-secondary: #fd9853;
}

[data-theme="light-purple"] {
    --primary-color: #8360c3;
    --secondary-color: #2ebf91;
    --accent-color: #ffeaa7;
    --accent-secondary: #fab1a0;
}

[data-theme="light-orange"] {
    --primary-color: #f7971e;
    --secondary-color: #ffd200;
    --accent-color: #ff7675;
    --accent-secondary: #fd79a8;
}


[data-theme="dark-blue"] {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #34495e;
    --accent-secondary: #5dade2;
    --text-color: #ecf0f1;
    --shadow-primary: rgba(52, 152, 219, 0.4);
    --shadow-accent: rgba(93, 173, 226, 0.4);
    --modal-bg: rgba(0, 0, 0, 0.9);
}

[data-theme="dark-green"] {
    --primary-color: #27ae60;
    --secondary-color: #2ecc71;
    --accent-color: #1e3a32;
    --accent-secondary: #58d68d;
    --text-color: #ecf0f1;
    --shadow-primary: rgba(46, 204, 113, 0.4);
    --shadow-accent: rgba(88, 214, 141, 0.4);
    --modal-bg: rgba(0, 0, 0, 0.9);
}

[data-theme="dark-purple"] {
    --primary-color: #8e44ad;
    --secondary-color: #9b59b6;
    --accent-color: #2c1a3d;
    --accent-secondary: #bb8fce;
    --text-color: #ecf0f1;
    --shadow-primary: rgba(155, 89, 182, 0.4);
    --shadow-accent: rgba(187, 143, 206, 0.4);
    --modal-bg: rgba(0, 0, 0, 0.9);
}

[data-theme="dark-red"] {
    --primary-color: #c0392b;
    --secondary-color: #e74c3c;
    --accent-color: #922b21;
    --accent-secondary: #f1948a;
    --text-color: #ecf0f1;
    --shadow-primary: rgba(231, 76, 60, 0.4);
    --shadow-accent: rgba(241, 148, 138, 0.4);
    --modal-bg: rgba(0, 0, 0, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background);
    min-height: 100vh;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-light);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: bounce 2s infinite;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cat-container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: 30px;
    max-width: 70vw;
    width: 100%;
    position: relative;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px;
}

.cat-image {
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    display: none;
    transition: transform 0.3s ease;
    box-shadow: none;
}

.cat-image:hover {
    transform: scale(1.05);
}

.cat-image.loaded {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    background: transparent;
    border-radius: 0;
    padding: 20px;
    box-shadow: none;
}

.loading.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    box-shadow: 0 4px 15px var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-primary);
}

.btn-secondary {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary));
    color: var(--text-color);
    box-shadow: 0 4px 15px var(--shadow-accent);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-accent);
}

.btn-danger {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.stats {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.stats p {
    font-size: 1.1rem;
    font-weight: bold;
    color: #667eea;
}

#viewCount {
    color: #764ba2;
    font-size: 1.3rem;
}

footer {
    text-align: center;
    padding: 20px;
    color: white;
    opacity: 0.8;
}

footer p {
    font-size: 1.1rem;
}

.cat-container.adjusting {
    transition: width 0.3s ease, height 0.3s ease;
}

.cat-image.sizing {
    transition: width 0.3s ease, height 0.3s ease;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    color: white;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-header h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.admin-content {
    display: grid;
    gap: 30px;
}

.admin-stats h2 {
    margin-bottom: 20px;
    color: white;
    font-size: 1.8rem;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card h3 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 10px;
}

.stat-card span {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}

.admin-logs h2 {
    margin-bottom: 20px;
    color: white;
    font-size: 1.8rem;
}

.log-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.logs-list {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.log-entry {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 4px solid #667eea;
}

.log-entry:last-child {
    margin-bottom: 0;
}

.log-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.log-message {
    color: white;
    font-weight: 500;
}

.admin-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
    width: 100%;
}

.login-box h2 {
    color: white;
    margin-bottom: 30px;
    font-size: 2rem;
}

.login-box input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.9);
    outline: none;
}

.login-box input:focus {
    background: white;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.login-box button {
    width: 100%;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
        max-width: 100%;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .cat-container {
        padding: 0;
        max-width: 85vw;
        min-height: 250px;
    }
    
    .cat-image {
        max-height: 50vh;
    }
    
    .loading {
        min-height: 200px;
        padding: 15px;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 200px;
        justify-content: center;
    }

    .admin-container {
        padding: 15px;
    }
    
    .admin-header {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-header h1 {
        font-size: 2rem;
    }
    
    .stat-cards {
        grid-template-columns: 1fr;
    }
    
    .log-controls {
        flex-direction: column;
    }
    
    .login-box {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .cat-container {
        max-width: 90vw;
        min-height: 200px;
    }
    
    .cat-image {
        max-height: 45vh;
    }
    
    .loading {
        min-height: 150px;
        padding: 10px;
    }
}




.cat-container {
    position: relative;
}

.image-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cat-container:hover .image-overlay {
    opacity: 1;
}

.favorite-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: white;
}

.favorite-btn.liked .heart {
    color: #e74c3c;
}




.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-bg);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close {
    color: var(--text-light);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 25px;
    color: var(--text-light);
    max-height: 50vh;
    overflow-y: auto;
}

.modal-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}


.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.favorite-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.favorite-item:hover {
    transform: scale(1.05);
}

.favorite-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.favorite-item img:hover {
    opacity: 0.8;
}

.favorite-item .remove-favorite {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-favorites {
    text-align: center;
    opacity: 0.7;
    font-style: italic;
    grid-column: 1 / -1;
    padding: 40px 20px;
}




.footer-links {
    margin-top: 15px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-link {
  color: white !important;
}


@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .favorites-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    

    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}




.photo-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    cursor: pointer;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    box-sizing: border-box;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 3001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.lightbox-image:hover {
    transform: scale(1.02);
}

.lightbox-info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}


.photo-lightbox.active {
    display: block;
    animation: lightboxFadeIn 0.3s ease-out;
}

.photo-lightbox.closing {
    animation: lightboxFadeOut 0.3s ease-out;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes lightboxFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}


@media (max-width: 768px) {
    .lightbox-content {
        padding: 40px 15px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .lightbox-image {
        max-width: 95%;
        max-height: 85%;
    }
    
    .lightbox-info {
        bottom: 20px;
        font-size: 14px;
        padding: 10px 20px;
    }
} 