/* Frontend Styles for NFC Card Manager */

/* General Profile Styles */
.nfc-profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Profile Header */
.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.profile-name {
    font-size: 2em;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item .icon {
    margin-right: 12px;
    font-size: 1.2em;
    width: 24px;
    text-align: center;
}

/* Login Required Styles */
.nfc-login-required {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin: 20px auto;
    max-width: 400px;
}

.nfc-login-required p {
    margin-bottom: 20px;
    color: #4a5568;
    font-size: 1.1em;
}

.nfc-login-required .button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.nfc-login-required .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Social Media Dropdown Styles */
.social-media-container {
    margin: 20px 0;
}

.social-platform-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    background: white;
}

#add_social_platform {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#add_social_platform:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.social-media-field {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    border: 1px solid #e1e5e9;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.social-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.remove-social-platform {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.remove-social-platform:hover {
    background: #c82333;
}

.social-media-field .form-group {
    margin-bottom: 10px;
}

.social-media-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.social-input-group input.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Responsive Design for General Styles */
@media (max-width: 768px) {
    .nfc-card-info-table th,
    .nfc-card-info-table td {
        padding: 8px 4px;
        font-size: 0.9em;
    }
    
    .nfc-card-info-table th {
        font-size: 0.8em;
    }
    
    .nfc-card-info-table th {
        min-width: 80px;
    }
    
    .nfc-card-info-table td {
        word-break: break-word;
    }
    
    .nfc-activation-form {
        flex-direction: column;
    }
    
    .nfc-card-info-list strong {
        display: block;
        margin-bottom: 4px;
    }
    
    .social-platform-select,
    .social-input-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .social-input-group {
        align-items: stretch;
    }
    
    .remove-social-platform {
        align-self: flex-start;
    }
    
    .social-media-field {
        padding: 12px;
    }
}

/* General Button Styles */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.button:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

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

.button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.button-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.button-secondary {
    background: #6c757d;
}

.button-secondary:hover {
    background: #5a6268;
}

.button-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* QR Code Styles */
.qr-code-container {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qr-actions {
    margin-top: 15px;
}

.qr-actions .button {
    margin: 0 5px;
}
