/* Reset and base styles */



/*Certificate page*/

.certificates-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.certificates-table th,
.certificates-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}
.certificates-table th {
    background-color: #f5f5f5;
}
.download-icon {
    cursor: pointer;
    color: #0073aa;
    text-decoration: none;
}
.download-icon:hover {
    color: #005177;
}




/* Container layout */

.profile-wrapper .container {
    display: flex !important;
    min-height: 600px !important;
    margin: 20px auto !important;
    max-width: 1200px !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1;
}


/* Sidebar styles */

/* Sidebar styles */
.sidebar {
    width: 250px;
    background: #4C5664;
    padding: 20px 0;
    border-radius: 8px 0 0 8px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar-item {
    padding: 15px 25px;
    color: #ecf0f1;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    border-left: 4px solid transparent;
    display: flex;
    align-items: center; /* Ensures icon and text are aligned */
    margin: 5px 0;
}

.sidebar-item:hover {
    background: #ffffff40;
    border-left: 4px solid #F69F25;

}

.sidebar-item.active {
    background: #ffffff40;
    border-left: 4px solid #F69F25;
    font-weight: 600;
}

/* New styles for icons */
.sidebar-icon {
    width: 20px; /* Adjust the icon size */
    height: 20px;
    margin-right: 10px; /* Space between the icon and the text */
    filter: brightness(0) invert(1); /* Ensures icons are white on dark backgrounds */
    flex-shrink: 0; /* Prevents icons from resizing */
}

/* Sidebar Logo */
.sidebar-logo {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
}

.company-logo {
    max-width: 80% !important;
    height: auto;
}



/* Main content area */
.content {
    flex: 1;
    padding: 30px;
    background: #fff;
    border-radius: 0 8px 8px 0;
}

.content > div {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.content > div.active {
    display: block;
}

/* Profile content specific styles */
#profileContent {
    max-width: 800px;
    margin: 0 auto;
}

#profileContent h2 {
    color: #4C5664;
    font-size: 28px;
}

.profile-picture {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.edit-profile-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.edit-profile-overlay:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.edit-profile-icon {
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden-file-input {
    display: none;
}

.user-details {
    flex-grow: 1;
}

.welcome-section h2 {
    color: #4C5664;
    margin-bottom: 15px;
    font-size: 2rem;
}

.welcome-section h3 {
    margin-left: 30px
}


.user-info-details p {
    margin: 10px 0;
    color: #666;
}

.user-info-details  {
    margin-left: 80px
}


#profileContent p {
    margin: 15px 0;
    font-size: 14px;
    color: #34495e;
    line-height: 1.6;
}

#profileContent strong {
    color: #2c3e50;
    font-weight: 600;
    min-width: 100px;
    display: inline-block;
}


.
payments-section {
    margin-bottom: 40px;
}



.payments-section h2 {
    color: #4C5664;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.payment-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    
}

.payment-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.payment-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.payment-card p {
    margin: 8px 0;
    color: #666;
}

.payment-card strong {
    color: #333;
}

/* home */

.container-home {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cards-container {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  margin-bottom: 20px;
}

.card {
  background-color: #fff;
  border-radius: 10px;
  border: 1px solid #b7bbc1;
  padding: 20px;
  text-align: left;
}

.card .icon {
  margin-bottom: 10px;
}

.card h2 {
  font-size: 18px !important;
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.card .learn-more {
  text-decoration: none;
  font-weight: bold;
}

.cards-container1 {
  width: 100%;
  max-width: 800px;
  margin-bottom: 40px;
}

.card1 {
  background-color: #fff;
  border-radius: 10px;
  border: 1px solid #b7bbc1;
  display: flex;
  padding: 20px;
}

.left-division {
  flex: 1;
  text-align: left;
}

.right-division {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.icon-column {
  margin-right: 20px;
}

.text-column .title {
  font-weight: bold;
  margin-bottom: 5px;
}

.text-column .subtitle {
  color: #555;
  text-decoration: underline;
}

.button-container {
  text-align: left;
}

.getStarted {
  display: inline-block;
  background-color: #4C5664;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
}


/* Offers  Layout */
.course-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.course-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

/* Course Offer Card */
.free-course-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.course-offer-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.free-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}





/* assets/profile.css */

/* Grid Layout */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    padding: 1rem;
}

/* Course Card */
.course-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Course Header */
.course-header {
    position: relative;
}

.course-image {
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badges */
.course-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.badge.theory {
    background: #3498db;
}

.badge.tool-kit {
    background: #2ecc71;
}

.badge.rpt {
    background: #e74c3c;
}

/* Course Content */
.course-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.course-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.course-description {
    font-size: 1.3rem;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.5;
}

/* Progress Section */
.course-progress {
    margin-top: auto;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-size: 1rem;
    font-weight: 600;
    color: #7f8c8d;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: #ecf0f1;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #3498db;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Continue Button */
.continue-button {
    display: block;
    padding: 1.1rem !important;
    border: none;
    border-radius: 4px;
    background:#4C5664;
    color: #fff;
    font-size: 14px;
    margin: 0 auto;
    cursor: pointer;
    transition: background 0.2s ease;
}

.continue-button:hover {
    background: #666f7c;
    color: #fcfcfc !important;
}



/* Profile Picture Update Styles */


.update-profile-container {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-left: 1rem;
}

.update-profile-container h2 {
    font-size: 1.25rem;
    margin-top: 0;
}

.current-profile-picture {
    max-width: 100px;
    margin-bottom: 1rem;
}

.profile-upload-form .submit-button {
    margin-top: 1rem;
}

#updateProfileContent {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.update-profile-section {
    text-align: center;
}

/* Heading Styles */
.update-profile-section h2 {
    color: #333333;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
}

/* Message Styles */
.message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    font-size: 0.9rem;
}


.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/*user profile */

.profile-card {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-image {
  width: 80px;
  height: 80px !important;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ddd;
}

.profile-image img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.profile-image .no-avatar {
  font-size: 32px;
  font-weight: bold;
  color: #666;
}

.profile-info h2 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
}

.profile-info h3 {
  font-size: 16px;
  font-weight: normal;
  margin-bottom: 10px;
}

.profile-info .user-info {
  font-size: 14px;
  color: #666;
}

.profile-info .info-label {
  font-weight: bold;
}

/*user profile */



.user-info-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #b7bbc1;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-picture-wrapper {
    position: relative;
    width: 10rem;
    height: 10rem;
}

.user-info {
    flex: 1;
    margin-right: 2rem;
}

.update-profile {
    width: 30%;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.update-profile h2 {
    font-size: 1.25rem;
    margin-top: 0;
}

.current-profile-picture {
    max-width: 100px;
    margin-bottom: 1rem;
}

.profile-upload-form .submit-button {
    margin-top: 1rem;
}

/* Profile Picture Styles */
.current-profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 1.5rem auto;
    display: block;
    border: 3px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.profile-upload-form {
    margin-top: 2rem;
}

.file-input-wrapper {
    margin-bottom: 1.5rem;
}

.file-input-wrapper label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555555;
    font-weight: 500;
}

input[type="file"] {
    display: block;
    width: 100%;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border: 1px solid #dddddd;
    border-radius: 4px;
    background-color: #f8f9fa;
}

/* Button Styles */
.submit-button {
    background-color: #007bff;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-button:hover {
    background-color: #0056b3;
}

.submit-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}



/* Debug Info */
.admin-debug {
    background: #f5f5f5;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ddd;
    font-family: monospace;
}

/* Error Messages */
.error-message {
    color: #e74c3c;
    padding: 1rem;
    background: #fdf2f1;
    border-radius: 4px;
    margin: 1rem 0;
}

.no-courses {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
    font-size: 1.1rem;
}




/* Personas list styling */
#profileContent ul {
    list-style: none;
    margin: 15px 0;
    padding: 0;
}

#profileContent ul li {
    padding: 10px 15px;
    background: #f7f9fc;
    margin: 5px 0;
    border-radius: 4px;
    color: #34495e;
    border-left: 3px solid #3498db;
    transition: all 0.3s ease;
}

#profileContent ul li:hover {
    background: #edf2f7;
    transform: translateX(5px);
}

/* Error message styling */
.error-message {
    color: #e74c3c;
    padding: 10px;
    background: #fde8e8;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 4px solid #e74c3c;
}

/* Success message styling */
.success-message {
    color: #27ae60;
    padding: 10px;
    background: #e8f8f0;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 4px solid #27ae60;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

.loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

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

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}





.admin-debug {
    background: #f5f5f5;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ddd;
    font-family: monospace;
}


/* Payemnt page css*/

.bill-container{
    height:500px;
    border: 1px solid #DBDDE0;
    padding: 20px;

}

.tab-nav {
    display: flex;
}
.tab-but {
    background-color:#DBDDE0 !important;
    color: #4C5664 !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    transition: none !important;
    border-radius: 0 !important;
   
}

.tab-but.left {
    border-top-left-radius: 4px !important; /* Rounded top-left corner */
    border-top-right-radius: 0 !important; /* No rounding on the top-right */
}

/* Right button with rounded top-right corner */
.tab-but.right {
    border-top-left-radius: 0 !important; /* No rounding on the top-left */
    border-top-right-radius: 4px !important; /* Rounded top-right corner */
}



.tab-but.active {
    background-color: white !important; 
    color: #828993 !important;          
    border-width: 1px 1px 0px 1px !important; 
    border-style: solid !important;
    border-color: #DBDDE0 !important;
    transition: none !important;
}


.tab-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}
.tab-content {
    display: none;
    height: 400px; /* Set a height as needed */
    overflow-y: auto; /* Enables vertical scrolling */
}
.tab-content.active {
    display: block;
}




/* Payment table styles */
.payments-table-wrapper {
    overflow-x: auto;
}


.payments-table,
.subscriptions-table {
  border-collapse: collapse !important;
  width: 100% !important;
  font-size: 14px !important;
  text-align: left !important;
}

/* Table header styles */
.payments-table th,
.subscriptions-table th {
  background-color: #f5f5f5 !important;
  padding: 12px 16px !important;
  font-weight: bold !important;
  border-bottom: 1px solid #ddd !important;
}

/* Table cell styles */
.payments-table td,
.subscriptions-table td {
  padding: 12px 16px !important;
  border-bottom: 1px solid #ddd !important;
}

/* Striped table row styles */
.payments-table tr:nth-child(even),
.subscriptions-table tr:nth-child(even) {
  background-color: #f9f9f9 !important;
}

.no-payments {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error-message {
    color: #dc3545;
    padding: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 10px 0;
}


.subscriptions-table-wrapper {
    overflow-x: auto;
}
h3 {
    margin-top: 2em;
    margin-bottom: 1em;
    font-size: 1.2em;
    color: #333;
}

.login-required-message {
    text-align: center;
    padding: 40px 20px;
    margin: 20px auto;
    max-width: 500px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.login-required-message h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}
.login-required-message p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
}
.login-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #0056b3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.login-button:hover {
    background-color: #003d82;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.login-button:active {
    transform: translateY(0);
    box-shadow: none;
}


/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        margin: 10px;
    }
    
    .sidebar {
        width: 100%;
        border-radius: 8px 8px 0 0;
        padding: 10px;
    }
    
    .content {
        border-radius: 0 0 8px 8px;
	padding: 20px;
    }
    
    .sidebar-item {
        padding: 12px 20px;
        font-size: 14px;
    }
    

    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-picture-wrapper {
        width: 150px;
        height: 150px;
    }
    
    .welcome-section h2 {
        font-size: 1.5rem;
    }

    #profileContent h2,
    #coursesContent h2 {
        font-size: 24px;
    }
    
    .column-one {
        padding: 0 !important;
    }
}
