/* Profile page specific styles */

#profile-section {
    padding: 3rem 1rem;
}

.profile-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.profile-container h2 {
    text-align: center;
    padding: 1.5rem 0;
    margin: 0;
    color: #333;
    border-bottom: 1px solid #eee;
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
}

.profile-tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: #666;
    transition: all 0.3s ease;
}

.profile-tab:hover {
    background-color: #f0f0f0;
}

.profile-tab.active {
    color: #4b6cb7;
    border-bottom: 3px solid #4b6cb7;
    background-color: white;
}

.profile-content {
    padding: 2rem;
}

.profile-content.hidden {
    display: none;
}

.profile-content h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
}

.profile-form .form-group {
    margin-bottom: 1.5rem;
}

.profile-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
}

.profile-form small {
    display: block;
    color: #888;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.profile-form input[type="text"]:focus,
.profile-form input[type="email"]:focus,
.profile-form input[type="password"]:focus {
    border-color: #4b6cb7;
    outline: none;
    box-shadow: 0 0 0 2px rgba(75, 108, 183, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    margin-right: 0.5rem;
}

.profile-button {
    padding: 0.75rem 1.5rem;
    background-color: #4b6cb7;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.profile-button:hover {
    background-color: #3a5a9f;
}

.password-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.profile-status {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.profile-status.pending {
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
}

.profile-status.approved {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.profile-status.blocked {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
}

.profile-status p {
    margin: 0.5rem 0;
}

.status-message {
    font-size: 0.9rem;
    color: #666;
}

/* My Events section */
.events-filter {
    display: flex;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.filter-button {
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
}

.filter-button.active {
    background-color: #4b6cb7;
    color: white;
    border-color: #4b6cb7;
}

.user-events-container {
    margin-bottom: 2rem;
}

.event-item {
    display: flex;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.event-item-details {
    flex: 1;
}

.event-item-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.event-item-date,
.event-item-status {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #666;
}

.event-item-status.pending {
    color: #ff9800;
}

.event-item-status.published {
    color: #4caf50;
}

.event-item-status.rejected {
    color: #f44336;
}

.event-item-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-action-button {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    text-align: center;
    text-decoration: none;
    color: #333;
}

.event-action-button:hover {
    background-color: #e0e0e0;
}

.create-event-button-container {
    text-align: center;
}

.create-event-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.create-event-button:hover {
    background-color: #3d8b40;
}

/* Danger zone */
.danger-zone {
    margin-top: 3rem;
    padding: 1.5rem;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    background-color: #ffebee;
}

.danger-zone h3 {
    color: #c62828;
    margin-top: 0;
}

.danger-button {
    padding: 0.75rem 1.5rem;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.danger-button:hover {
    background-color: #d32f2f;
}

/* Error and success messages */
.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Loading message */
.loading-message {
    text-align: center;
    color: #666;
    padding: 2rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .profile-content {
        padding: 1.5rem;
    }
    
    .event-item {
        flex-direction: column;
    }
    
    .event-item-actions {
        flex-direction: row;
        margin-top: 1rem;
    }
    
    .event-action-button {
        margin-right: 0.5rem;
        margin-bottom: 0;
    }
}