/* assets/css/style.css */

/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(135deg, #6868b0 0%, #23a9e0 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
}

/* Login page styles */
.login-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    padding: 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 28px;
    color: #6868b0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

button {
    background: linear-gradient(135deg, #6868b0 0%, #23a9e0 100%);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.2s;
}

button:hover {
    opacity: 0.9;
}

.error {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Dashboard styles */
.dashboard-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1000px;
    min-height: 500px;
    padding: 30px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.actions .logout-btn {
    background: #f1f1f1;
    color: #333;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.2s;
}

.actions .logout-btn:hover {
    background: #e0e0e0;
}

.upload-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.upload-section h2 {
    margin-bottom: 15px;
    color: #6868b0;
}

.images-section h2 {
    margin-bottom: 20px;
    color: #6868b0;
}

.no-images {
    text-align: center;
    padding: 30px;
    color: #777;
    background: #f9f9f9;
    border-radius: 8px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.image-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.image-preview {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f6f6;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-info {
    padding: 15px;
}

.filename {
    font-weight: bold;
    margin-bottom: 5px;
    word-break: break-all;
}

.upload-date {
    color: #777;
    font-size: 14px;
    margin-bottom: 10px;
}

.image-link {
    display: flex;
    margin-top: 10px;
}

.image-link input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-btn {
    width: auto;
    padding: 8px 15px;
    border-radius: 0 5px 5px 0;
    font-size: 14px;
}

/* File input styling */
.upload-section .form-group {
    position: relative;
}

.upload-section input[type="file"] {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.upload-section .form-group label {
    background: #f1f1f1;
    color: #333;
    display: inline-block;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: background 0.2s;
}

.upload-section .form-group label:hover {
    background: #e0e0e0;
}

.upload-section .file-name {
    margin-top: 8px;
    font-size: 14px;
    color: #6868b0;
    display: none;
}

.upload-section .file-name.show {
    display: block;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: #e74c3c;
}

.notification.success {
    background: #2ecc71;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    header {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .actions {
        margin-top: 10px;
    }
}