/* Reset and base styles */
* {
*     margin: 0;
*         padding: 0;
*             box-sizing: border-box;
*             }
*
*             html, body {
*                 width: 100%;
*                     height: 100%;
*                         overflow: hidden;
*                         }
*
*                         body {
*                             font-family: Arial, sans-serif;
*                                 background-color: #000;
*                                     color: #fff;
*                                     }
*
*/* Slideshow container */
#slideshow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Image styling */
.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #000;
}

/* Animation and transitions */
.fade-in {
    animation: fadeIn 1s ease-in-out;
    opacity: 1;
}

.fade-out {
    animation: fadeOut 1s ease-in-out;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Admin styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    color: #333;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.admin-nav {
    display: flex;
    gap: 15px;
}

.admin-nav a {
    text-decoration: none;
    color: #0066cc;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.admin-nav a:hover {
    background-color: #f0f0f0;
}

.admin-content {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn {
    padding: 10px 15px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #0052a3;
}

.alert {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.folder-list {
    list-style: none;
    margin-bottom: 20px;
}

.folder-list li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.folder-list li:hover {
    background-color: #f5f5f5;
}

.folder-icon {
    margin-right: 10px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.image-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.image-item .delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(255, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#slideshow-image {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-color: #000;
}

#slideshow-image.fade-in {
    opacity: 1;
}

#slideshow-image.fade-out {
    opacity: 0;
}

.no-images {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 1.2em;
    color: #666;
    z-index: 2;
} 
