/* Digital Tipping System Frontend Styles */

.dts-worker-profile {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.dts-worker-profile-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
}

.dts-worker-name {
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0;
}

.dts-worker-role {
    font-size: 16px;
    opacity: 0.9;
    margin: 5px 0;
}

.dts-centre-name {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 10px;
}

.dts-qr-code-container {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.dts-qr-code {
    display: inline-block;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dts-qr-code img {
    width: 300px;
    height: 300px;
    display: block;
}

.dts-tip-button {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 30px auto;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dts-tip-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.dts-tip-button:active {
    transform: translateY(0);
}

.dts-instruction {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 20px;
}

.dts-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 12px;
    color: #999;
}

/* Loading State */
.dts-loading {
    opacity: 0.6;
    pointer-events: none;
}

.dts-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Error State */
.dts-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
}

/* Success State */
.dts-success {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin: 20px 0;
    border: 1px solid #c3e6cb;
}

/* Responsive */
@media (max-width: 600px) {
    .dts-worker-profile {
        padding: 10px;
    }

    .dts-worker-name {
        font-size: 24px;
    }

    .dts-qr-code img {
        width: 250px;
        height: 250px;
    }

    .dts-tip-button {
        padding: 14px 24px;
        font-size: 16px;
    }
}
