/* Custom User Profile & Skills - Dark Theme */

.cups-container {
   
    min-height: 100vh;
    padding: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cups-header {
    max-width: 900px;
    margin: 0 auto 40px;
}

.cups-header h1 {
    color: #ffffff;
    font-size: 36px;
    font-weight: 600;
    margin: 0;
}

.cups-section {
    max-width: 900px;
    margin: 0 auto 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
}

.cups-section-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.cups-subsection-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 25px 0 10px 0;
}

.cups-section-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cups-language-guide {
    background-color: rgba(60, 10, 198, 0.1);
    border-left: 3px solid #3C0AC6;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.cups-language-guide p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 8px 0;
    line-height: 1.5;
}

.cups-language-guide strong {
    color: #ffffff;
    font-weight: 600;
}

/* Language List */
.cups-language-list {
    margin-bottom: 25px;
}

.cups-language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.cups-language-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.cups-language-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.cups-language-name {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Background Section */
.cups-background-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Messages */
.cups-message {
    padding: 12px 20px;
    border-radius: 12px;
    margin-top: 15px;
    font-size: 14px;
    display: none;
}

.cups-message.success {
    background-color: rgba(34, 197, 94, 0.1);
    border-left: 3px solid #22c55e;
    color: #22c55e;
    display: block;
}

.cups-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
    color: #ef4444;
    display: block;
}

/* Notification */
.cups-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.cups-notification.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.cups-notification.success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.cups-notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Loading State */
.cups-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.cups-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Autofill Styles */
.cups-input:-webkit-autofill,
.cups-input:-webkit-autofill:hover,
.cups-input:-webkit-autofill:focus,
.cups-textarea:-webkit-autofill,
.cups-textarea:-webkit-autofill:hover,
.cups-textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0px 1000px rgba(60, 10, 198, 0.1) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Empty State */
.cups-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cups-container {
        padding: 20px 15px;
    }

    .cups-header h1 {
        font-size: 28px;
    }

    .cups-section {
        padding: 20px;
        border-radius: 15px;
    }

    .cups-section-title {
        font-size: 20px;
    }

    .cups-language-item,
    .cups-skill-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cups-language-info {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 10px;
    }

    .cups-language-name {
        min-width: auto;
    }

    .cups-language-proficiency {
        width: 100%;
    }

    .cups-btn-remove,
    .cups-btn-remove-skill {
        width: 100%;
    }

    .cups-add-form {
        flex-direction: column;
    }

    .cups-input,
    .cups-select {
        width: 100%;
        min-width: auto;
    }

    .cups-btn-add {
        width: 100%;
    }

    .cups-btn-primary {
        max-width: 100%;
    }

    .cups-notification {
        left: 15px;
        right: 15px;
        top: 15px;
    }
}

@media (max-width: 480px) {
    .cups-header h1 {
        font-size: 24px;
    }

    .cups-section {
        padding: 15px;
    }

    .cups-input,
    .cups-select,
    .cups-textarea {
        font-size: 14px;
        padding: 10px 16px;
    }

    .cups-btn-add,
    .cups-btn-primary {
        font-size: 14px;
        padding: 12px 24px;
    }
}

/* Print Styles */
@media print {
    .cups-container {
        background: white;
    }

    .cups-btn-add,
    .cups-btn-remove,
    .cups-btn-remove-skill,
    .cups-btn-primary {
        display: none;
    }

    .cups-add-form {
        display: none;
    }
}

/* Dark scrollbar */
.cups-container ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.cups-container ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.cups-container ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.cups-container ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}font-size: 16px;
    min-width: 120px;
}

.cups-language-proficiency {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 15px;
    font-size: 14px;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Skills List */
.cups-skills-list {
    margin-bottom: 25px;
}

.cups-skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.cups-skill-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.cups-skill-name {
    color: #ffffff;
    font-weight: 500;
    font-size: 16px;
}

/* Add Forms */
.cups-add-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.cups-input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #ffffff;
    padding: 12px 20px;
    font-size: 15px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.cups-input:focus {
    outline: none;
    border-color: #3C0AC6;
    background-color: rgba(60, 10, 198, 0.1);
    box-shadow: 0 0 0 4px rgba(60, 10, 198, 0.2);
}

.cups-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.cups-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: rgba(255, 255, 255, 0.02);
}

.cups-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #ffffff;
    padding: 12px 40px 12px 20px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    min-width: 180px;
}

.cups-select:focus {
    outline: none;
    border-color: #3C0AC6;
    background-color: rgba(60, 10, 198, 0.1);
    box-shadow: 0 0 0 4px rgba(60, 10, 198, 0.2);
}

.cups-select option {
    background-color: #1a0b3e;
    color: #ffffff;
}

.cups-textarea {
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #ffffff;
    padding: 15px 20px;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.cups-textarea:focus {
    outline: none;
    border-color: #3C0AC6;
    background-color: rgba(60, 10, 198, 0.1);
    box-shadow: 0 0 0 4px rgba(60, 10, 198, 0.2);
}

.cups-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Buttons */
.cups-btn-add {
    background: linear-gradient(135deg, #3C0AC6 0%, #5B21B6 100%);
    border-radius: 50px;
    color: #ffffff;
    padding: 12px 28px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(60, 10, 198, 0.3);
    white-space: nowrap;
}

.cups-btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(60, 10, 198, 0.4);
}

.cups-btn-add:active {
    transform: translateY(0);
}

.cups-btn-remove,
.cups-btn-remove-skill {
    background-color: transparent;
    border: 2px solid rgba(239, 68, 68, 0.5);
    border-radius: 8px;
    color: #ef4444;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cups-btn-remove:hover,
.cups-btn-remove-skill:hover {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.cups-btn-primary {
    background: linear-gradient(135deg, #3C0AC6 0%, #5B21B6 100%);
    border-radius: 50px;
    color: #ffffff;
    padding: 15px 40px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(60, 10, 198, 0.4);
    width: 100%;
    max-width: 300px;
    margin-top: 20px;
}

.cups-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(60, 10, 198, 0.5);
}

.cups-btn-primary:active {
    transform: translateY(0);
}

/* Profile Form */
.cups-profile-form {
    display: flex;
    flex-direction: column;
}

/* Profile Form - 2 Column Layout */
.cups-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.cups-form-row-full {
    grid-template-columns: 1fr;
}

.cups-form-group {
    margin-bottom: 0;
    width: 100%;
}

.cups-form-group .cups-input {
    width: 100%;
    min-width: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cups-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.cups-form-group {
    margin-bottom: 20px;
}

.cups-form-group label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}