/* General iOS-like styles for consistency with main app */
.ios-input,
.ios-textarea,
.ios-select {
    width: calc(100% - 28px); /* Adjusted for padding and border */
    padding: 12px 14px;
    border: 1px solid #cdd5df;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.ios-input:focus,
.ios-textarea:focus,
.ios-select:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.2);
    outline: none;
}

.ios-button-primary,
.ios-button-secondary,
.ios-button-danger {
    background-color: #1a73e8;
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 15px;
    outline: none;
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.2);
}

.ios-button-primary:hover {
    background-color: #0d47a1;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(26, 115, 232, 0.3);
}

.ios-button-primary:disabled {
    background-color: #a0cbed;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ios-button-secondary {
    background-color: #6c757d;
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.2);
}

.ios-button-secondary:hover {
    background-color: #5a6268;
    box-shadow: 0 6px 15px rgba(108, 117, 125, 0.3);
}

.message {
    margin-top: 25px;
    padding: 15px;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
    font-size: 0.95em;
}

.message.error {
    background-color: #ffe0e6;
    color: #d9001b;
    border: 1px solid #ffb3c1;
}

.message.success {
    background-color: #e6ffed;
    color: #008a2e;
    border: 1px solid #b3ffc7;
}

.hidden {
    display: none;
}

.top-right-buttons {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px; /* Space between buttons */
}

/* Login Toggle Button */
.login-toggle-btn {
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 8px;
}

.sora-nav-btn {
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 8px;
    background-color: #4CAF50; /* Example color, can be adjusted */
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sora-nav-btn:hover {
    background-color: #45a049;
}

/* Login Panel Styles */
.login-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.4s ease-out;
    padding: 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.login-panel.visible {
    transform: translateX(0);
}

.login-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.login-panel-header h3 {
    color: #1a73e8;
    margin: 0;
    font-size: 1.8em;
    font-weight: 600;
}

.login-panel .input-group {
    margin-bottom: 15px;
    text-align: left;
}

.login-panel .input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
    font-size: 0.95em;
}

.login-panel .ios-button-primary {
    width: 100%;
    margin-top: 25px;
}

/* Image Display Section */
.image-display-section {
    width: 90%; /* Match main-wrapper width */
    margin: 40px auto; /* Centered with top margin */
    text-align: center;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-display-section h2 {
    color: #1a73e8;
    margin-bottom: 35px;
    font-size: 2.2em;
    font-weight: 700;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 20px;
    padding: 0 20px; /* Some horizontal padding */
}

.image-item {
    background-color: #f0f4f8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.image-item:hover {
    transform: translateY(-5px);
}

.image-item img {
    width: 100%;
    /* height: 200px; */ /* Removed fixed height */
    display: block;
}

/* The sora-option-section was removed by the user, so its styles are no longer needed. */

@media (max-width: 768px) {
    .top-right-buttons {
        top: 10px;
        right: 10px;
        gap: 5px;
    }

    .login-toggle-btn, .sora-nav-btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .login-panel {
        width: 100%; /* Full width on smaller screens */
    }

    .image-grid {
        padding: 0;
    }
}
