/* Travel Sharing Community Plugin Styles */

/* General Styles */
.tsc-registration-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.tsc-registration-container h2 {
    text-align: center;
    color: #1a73e8;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 600;
}

.tsc-form-section {
    margin-bottom: 30px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #1a73e8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tsc-form-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.tsc-form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1a73e8;
    font-size: 22px;
    border-bottom: 2px solid #e8eaed;
    padding-bottom: 12px;
}

/* Form Groups */
.tsc-form-group {
    margin-bottom: 24px;
}

.tsc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #202124;
    font-size: 15px;
}

/* Ensure consistent width for text fields */
.tsc-form-group input[type="text"],
.tsc-form-group input[type="password"],
.tsc-form-group select,
.tsc-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8eaed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #fff;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

/* Password Container - make it same width as other inputs */
.password-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Password Toggle */
.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #5f6368;
    padding: 0;
    font-size: 20px;
    transition: color 0.3s;
    z-index: 2; /* Ensure it's above the input */
}

/* Ensure password field doesn't overflow its container */
.password-container input[type="password"],
.password-container input[type="text"] {
    width: 100%;
}

.tsc-form-group input[type="text"]:focus,
.tsc-form-group input[type="password"]:focus,
.tsc-form-group select:focus,
.tsc-form-group textarea:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

/* Password Toggle */
.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #5f6368;
    padding: 0;
    font-size: 20px;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #1a73e8;
}

.toggle-password:focus {
    outline: none;
}

/* Radio and Checkbox Groups */
.tsc-radio-group,
.tsc-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tsc-radio-group label,
.tsc-checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    padding: 8px 16px;
    background-color: #fff;
    border: 2px solid #e8eaed;
    border-radius: 30px;
    transition: all 0.3s;
}

.tsc-radio-group label:hover,
.tsc-checkbox-group label:hover {
    border-color: #1a73e8;
    background-color: #f4f8ff;
}

.tsc-radio-group input,
.tsc-checkbox-group input {
    margin-right: 8px;
}

.tsc-radio-group input:checked + span,
.tsc-checkbox-group input:checked + span {
    color: #1a73e8;
    font-weight: 500;
}

/* File Upload */
.tsc-file-upload {
    margin-bottom: 20px;
}

#upload-button {
    background-color: #1a73e8;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#upload-button:hover {
    background-color: #0d62c9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.3);
}

#upload-button:active {
    transform: translateY(0);
}

#profile-preview-container {
    margin-top: 20px;
    text-align: center;
}

#profile-preview {
    max-width: 150px;
    max-height: 150px;
    border-radius: 50%;
    border: 4px solid #1a73e8;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

#profile-preview:hover {
    transform: scale(1.05);
}

#upload-success-message {
    color: #0f9d58;
    margin-top: 12px;
    font-weight: 500;
    padding: 8px 16px;
    background-color: rgba(15, 157, 88, 0.1);
    border-radius: 20px;
    display: inline-block;
}

/* Form Actions */
.tsc-form-actions {
    text-align: center;
    margin-top: 40px;
}

#tsc-submit-btn {
    background-color: #1a73e8;
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(26, 115, 232, 0.2);
    min-width: 200px;
}

#tsc-submit-btn:hover {
    background-color: #0d62c9;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(26, 115, 232, 0.3);
}

#tsc-submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(26, 115, 232, 0.2);
}

/* Messages */
#tsc-registration-message {
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#tsc-registration-message.success {
    background-color: rgba(15, 157, 88, 0.1);
    color: #0f9d58;
    border: 1px solid rgba(15, 157, 88, 0.2);
}

#tsc-registration-message.error {
    background-color: rgba(217, 48, 37, 0.1);
    color: #d93025;
    border: 1px solid rgba(217, 48, 37, 0.2);
}

#username-message {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    transition: all 0.3s;
    padding: 4px 10px;
    border-radius: 15px;
}

#username-message.available {
    color: #0f9d58;
    background-color: rgba(15, 157, 88, 0.1);
}

#username-message.unavailable {
    color: #d93025;
    background-color: rgba(217, 48, 37, 0.1);
}

/* Admin Styles */
.tsc-admin-section {
    background: #fff;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #1a73e8;
}

.tsc-admin-form-group {
    margin-bottom: 20px;
}

.tsc-admin-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #202124;
}

.tsc-admin-form-group input {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border: 2px solid #e8eaed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.tsc-admin-form-group input:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

#tsc-add-college-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
}

#tsc-add-college-message.success {
    background-color: rgba(15, 157, 88, 0.1);
    color: #0f9d58;
    border: 1px solid rgba(15, 157, 88, 0.2);
}

#tsc-add-college-message.error {
    background-color: rgba(217, 48, 37, 0.1);
    color: #d93025;
    border: 1px solid rgba(217, 48, 37, 0.2);
}

/* Error Highlighting */
.tsc-form-group input.error,
.tsc-form-group select.error,
.tsc-form-group textarea.error {
    border-color: #d93025;
    background-color: rgba(217, 48, 37, 0.05);
}

.tsc-radio-group.error label,
.tsc-checkbox-group.error label {
    border-color: #d93025;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .tsc-registration-container {
        padding: 20px;
    }
    
    .tsc-form-section {
        padding: 20px;
    }
    
    .tsc-radio-group,
    .tsc-checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
    
    #tsc-submit-btn {
        width: 100%;
    }
    
    #profile-preview {
        max-width: 120px;
        max-height: 120px;
    }
}

@media (max-width: 480px) {
    .tsc-registration-container h2 {
        font-size: 26px;
    }
    
    .tsc-form-section h3 {
        font-size: 20px;
    }
    
    .tsc-form-group input[type="text"],
    .tsc-form-group input[type="password"],
    .tsc-form-group select,
    .tsc-form-group textarea {
        font-size: 15px;
        padding: 10px 14px;
    }
    
    #upload-button,
    #tsc-submit-btn {
        font-size: 16px;
        padding: 12px 20px;
    }
}
/* Login Styles */
.tsc-login-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.tsc-login-container h2 {
    text-align: center;
    color: #1a73e8;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.tsc-form-links {
    margin-top: 20px;
    text-align: center;
    font-size: 15px;
}

.tsc-form-links a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.tsc-form-links a:hover {
    color: #0d62c9;
    text-decoration: underline;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 8px;
}

#tsc-login-btn {
    background-color: #1a73e8;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(26, 115, 232, 0.2);
    min-width: 150px;
}

#tsc-login-btn:hover {
    background-color: #0d62c9;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(26, 115, 232, 0.3);
}

#tsc-login-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(26, 115, 232, 0.2);
}

#tsc-login-message {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
    animation: fadeIn 0.5s;
}

/* Profile Styles */
.tsc-profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.tsc-profile-container h2 {
    text-align: center;
    color: #1a73e8;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 600;
}

.tsc-profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.tsc-profile-picture {
    flex: 0 0 150px;
    text-align: center;
    margin-right: 30px;
}

.tsc-profile-picture img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #1a73e8;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tsc-default-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #e8eaed;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #1a73e8;
}

.tsc-default-avatar .dashicons {
    font-size: 80px;
    color: #5f6368;
}

.tsc-profile-picture-upload {
    margin-top: 15px;
}

.tsc-profile-info {
    flex: 1;
}

.tsc-profile-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #202124;
    font-size: 24px;
}

.tsc-profile-info p {
    margin: 8px 0;
    color: #5f6368;
    font-size: 16px;
}

.tsc-profile-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #e8eaed;
}

.tsc-tab-button {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-right: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #5f6368;
    transition: all 0.3s;
}

.tsc-tab-button:hover {
    color: #1a73e8;
}

.tsc-tab-button.active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
}

.tsc-tab-content {
    display: none;
}

.tsc-tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

.tsc-password-note {
    font-size: 14px;
    color: #5f6368;
    font-style: italic;
    margin-top: 15px;
}

.tsc-logout-btn {
    display: inline-block;
    margin-left: 15px;
    padding: 12px 25px;
    background-color: #f8f9fa;
    color: #5f6368;
    border: 2px solid #e8eaed;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.tsc-logout-btn:hover {
    background-color: #e8eaed;
    color: #202124;
}

#tsc-update-btn {
    background-color: #1a73e8;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(26, 115, 232, 0.2);
}

#tsc-update-btn:hover {
    background-color: #0d62c9;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(26, 115, 232, 0.3);
}

#tsc-update-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(26, 115, 232, 0.2);
}

#tsc-profile-message {
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
    animation: fadeIn 0.5s;
}

/* Responsive Profile Styles */
@media (max-width: 768px) {
    .tsc-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .tsc-profile-picture {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .tsc-profile-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .tsc-tab-button {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tsc-profile-container h2 {
        font-size: 24px;
    }
    
    .tsc-profile-info h3 {
        font-size: 20px;
    }
    
    .tsc-profile-picture img,
    .tsc-default-avatar {
        width: 120px;
        height: 120px;
    }
    
    .tsc-default-avatar .dashicons {
        font-size: 60px;
    }
    
    .tsc-logout-btn {
        display: block;
        margin-left: 0;
        margin-top: 15px;
        text-align: center;
    }
}
/* Add these styles for the password toggle and file upload button */

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #5f6368;
}

.toggle-password:focus {
    outline: none;
}

.toggle-password .dashicons {
    font-size: 20px;
}

#upload-button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

#upload-button:hover {
    background-color: #0d62c9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.3);
}
/* Profile picture upload styles */
.tsc-profile-picture-upload {
    margin-top: 10px;
    text-align: center;
}

#upload-button, #submit-picture {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    margin: 5px;
}

#upload-button:hover, #submit-picture:hover {
    background-color: #0069d9;
}

#submit-picture {
    background-color: #28a745;
}

#submit-picture:hover {
    background-color: #218838;
}

.hidden {
    display: none;
}

#upload-status {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tsc-preloader {
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #007bff;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Multi-step Form Styles */
.tsc-multistep-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.tsc-multistep-container h2 {
    text-align: center;
    color: #1a73e8;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 600;
}

/* Progress Bar */
.tsc-progress-bar {
    height: 8px;
    background-color: #e8eaed;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.tsc-progress-bar-inner {
    height: 100%;
    background-color: #1a73e8;
    width: 0%;
    transition: width 0.3s ease;
}

/* Step Indicators */
.tsc-step-indicators {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.tsc-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 33.33%;
}

.tsc-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e8eaed;
    color: #5f6368;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.tsc-step-label {
    color: #5f6368;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.tsc-step-indicator.active .tsc-step-number {
    background-color: #1a73e8;
    color: white;
}

.tsc-step-indicator.active .tsc-step-label {
    color: #1a73e8;
}

.tsc-step-indicator.completed .tsc-step-number {
    background-color: #0f9d58;
    color: white;
}

.tsc-step-indicator.completed .tsc-step-label {
    color: #0f9d58;
}

/* Form Steps */
.tsc-form-step {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Actions */
.tsc-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.tsc-next-btn, 
.tsc-prev-btn, 
#tsc-register-btn {
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tsc-next-btn, 
#tsc-register-btn {
    background-color: #1a73e8;
    color: white;
    border: none;
    min-width: 120px;
}

/* Multi-step Form Styles (continued) */
.tsc-next-btn:hover, 
#tsc-register-btn:hover {
    background-color: #0d62c9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.3);
}

.tsc-prev-btn {
    background-color: transparent;
    color: #5f6368;
    border: 2px solid #e8eaed;
}

.tsc-prev-btn:hover {
    color: #1a73e8;
    border-color: #1a73e8;
    background-color: rgba(26, 115, 232, 0.05);
}

.tsc-next-btn:disabled,
#tsc-register-btn:disabled {
    background-color: #c5c5c5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form Messages */
#tsc-form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

#tsc-form-message.error {
    background-color: #fce8e6;
    color: #d93025;
    border-left: 4px solid #d93025;
}

#tsc-form-message.success {
    background-color: #e6f4ea;
    color: #0f9d58;
    border-left: 4px solid #0f9d58;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tsc-multistep-container {
        padding: 20px;
    }
    
    .tsc-step-indicators {
        flex-wrap: wrap;
    }
    
    .tsc-step-indicator {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .tsc-form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .tsc-next-btn, 
    .tsc-prev-btn, 
    #tsc-register-btn {
        width: 100%;
    }
}

/* Media Queries for Responsive Design */
@media screen and (max-width: 768px) {
    .tsc-step-indicators {
        display: none;
    }
    
    /* Adjust the progress bar to take full width */
    .tsc-progress-bar {
        width: 100%;
        margin: 20px 0;
    }
    
    /* Make form sections more compact */
    .tsc-form-section {
        padding: 15px;
    }
}