/**
 * QRProfileLink Dashboard Styles
 * Modern, responsive design with clean UI elements
 */

/* Base Styles */
.qrpl-dashboard-container {
    max-width: 1000px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Header Styles */
.qrpl-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, #4a90e2, #5e72e4);
    color: white;
    border-radius: 8px 8px 0 0;
}

.qrpl-dashboard-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.qrpl-dashboard-header h2 .dashicons {
    margin-right: 10px;
    font-size: 24px;
    height: 24px;
    width: 24px;
}

.qrpl-logout-btn {
    background-color: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.qrpl-logout-btn:hover {
    background-color: rgba(255,255,255,0.3);
    color: white;
    text-decoration: none;
}

.qrpl-logout-btn .dashicons {
    margin-right: 5px;
}

/* Navigation Styles */
.qrpl-dashboard-nav {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
}

.qrpl-dashboard-nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.qrpl-dashboard-nav li {
    margin: 0;
    padding: 0;
}

.qrpl-dashboard-nav a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #555;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.qrpl-dashboard-nav a:hover {
    background-color: #f0f0f0;
    color: #333;
}

.qrpl-dashboard-nav li.active a {
    border-bottom: 2px solid #4a90e2;
    color: #4a90e2;
    font-weight: 500;
}

.qrpl-dashboard-nav .dashicons {
    margin-right: 8px;
    font-size: 18px;
    height: 18px;
    width: 18px;
}

/* Tab Content Styles */
.qrpl-tab-content {
    display: none;
    padding: 30px;
}

.qrpl-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.qrpl-tab-content h3 {
    margin-top: 0;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.qrpl-tab-content h3 .dashicons {
    margin-right: 10px;
    color: #4a90e2;
}

/* Form Styles */
.qrpl-form-field {
    margin-bottom: 20px;
}

.qrpl-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.qrpl-form-field input,
.qrpl-form-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    font-size: 15px;
}

.qrpl-form-field input:focus,
.qrpl-form-field textarea:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74,144,226,0.1);
    background-color: #fff;
}

.qrpl-form-field textarea {
    height: 120px;
    resize: vertical;
}

/* Button Styles */
.qrpl-button {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.qrpl-button:hover {
    background-color: #3a7fcf;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.qrpl-button .dashicons {
    margin-right: 8px;
    font-size: 16px;
    height: 16px;
    width: 16px;
}

.qrpl-button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* QR Code Styles */
.qrpl-qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.qrpl-qrcode-display {
    width: 250px;
    height: 250px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.qrpl-qrcode-info {
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.qrpl-profile-url {
    font-weight: 500;
    word-break: break-all;
    background-color: #f0f0f0;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 5px;
}

/* Images Styles */
.qrpl-images-container {
    margin-top: 20px;
}

.qrpl-image-upload {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.qrpl-upload-label {
    background-color: #f0f0f0;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.qrpl-upload-label:hover {
    background-color: #e0e0e0;
}

.qrpl-upload-label .dashicons {
    margin-right: 8px;
}

input[type="file"] {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.qrpl-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Notification Styles */
.qrpl-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    max-width: 300px;
}

.qrpl-notification.qrpl-show {
    transform: translateY(0);
    opacity: 1;
}

.qrpl-notification.qrpl-success {
    border-left: 4px solid #4caf50;
}

.qrpl-notification.qrpl-error {
    border-left: 4px solid #f44336;
}

.qrpl-notification .dashicons {
    margin-right: 10px;
    font-size: 20px;
}

.qrpl-notification.qrpl-success .dashicons {
    color: #4caf50;
}

.qrpl-notification.qrpl-error .dashicons {
    color: #f44336;
}

.qrpl-notification-close {
    margin-left: 15px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
}

.qrpl-notification-close:hover {
    opacity: 1;
}

/* Not logged in message */
.qrpl-not-logged-in {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
}

.qrpl-not-logged-in a {
    color: #721c24;
    font-weight: bold;
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .qrpl-dashboard-nav ul {
        flex-direction: column;
    }
    
    .qrpl-dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }
    
    .qrpl-tab-content {
        padding: 20px 15px;
    }
    
    .qrpl-button-group {
        flex-direction: column;
    }
    
    .qrpl-button {
        width: 100%;
        justify-content: center;
    }
}