/* THE WORKERS Plugin Styles */

/* Loading spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Override WordPress admin bar on frontend */
#the-workers-root {
    margin-top: 0 !important;
}

/* Login required message */
.the-workers-login-required {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 500px;
}

.the-workers-login-required p {
    margin-bottom: 1rem;
    color: #495057;
}

.the-workers-login-required a {
    display: inline-block;
    background: #dc2626;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.the-workers-login-required a:hover {
    background: #b91c1c;
}

/* Ensure proper spacing for the app */
#the-workers-root {
    min-height: 100vh;
    position: relative;
}

/* Fix for WordPress theme conflicts */
#the-workers-root * {
    box-sizing: border-box;
}

#the-workers-root img {
    max-width: 100%;
    height: auto;
}

/* Save status styles */
.save-status {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
}

.save-status.saving {
    background: #fef3c7;
    color: #92400e;
}

.save-status.saved {
    background: #d1fae5;
    color: #065f46;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #the-workers-root .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #the-workers-root .grid {
        grid-template-columns: 1fr;
    }
}