/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(45deg, #1a1a2e, #16213e, #0f3460);
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Profile Styles */
.profile {
    margin-bottom: 30px;
}

#profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

#profile-name {
    font-size: 24px;
    margin-bottom: 5px;
}

#profile-bio {
    font-size: 14px;
    color: #cccccc;
}

/* Links Styles (Preview) */
.link-card {
    display: block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: transform 0.2s, background 0.2s;
}

.link-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

/* Form & Input Styles (Editor) */
.input-group {
    text-align: left;
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 5px;
}

input[type="text"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    color: white;
    outline: none;
    font-size: 14px;
}

input[type="text"]:focus {
    border-color: #4a90e2;
    background: rgba(255, 255, 255, 0.1);
}

/* Link Row in Form */
.link-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.link-row input:first-child {
    flex: 1;
    /* Name takes less space */
}

.link-row input:last-child {
    flex: 2;
    /* URL takes more space */
}

.divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.primary-btn {
    background: #4a90e2;
    color: white;
}

.primary-btn:hover {
    background: #357abd;
}

.secondary-btn {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    color: #ddd;
}

.secondary-btn:hover {
    border-color: white;
    color: white;
}