/*
    DEMO STYLE
*/

@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";
body {
    font-family: 'Poppins', sans-serif;
    background: var(--patitur-sidebar-bg, #1E2939);
    min-height: 100vh;
}

p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.7em;
    color: #999;
}

a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.navbar {
    padding: 15px 10px;
    background: transparent;
    border: none;
    border-radius: 0;
    margin-bottom: 40px;
    box-shadow: none;
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

i,
span {
    display: inline-block;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.wrapper {
    display: flex;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: var(--patitur-sidebar-bg, #1E2939);
    color: #fff;
    transition: all 0.3s;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
}

/* Shrinking the sidebar from 250px to 80px and center aligining its content*/
#sidebar.sidebar-collapsed {
    min-width: 80px;
    max-width: 80px;
    text-align: center;
}

/* Toggling the sidebar header content, hide the big heading [h3] and showing the small heading [strong] and vice versa*/
#sidebar.sidebar-collapsed .sidebar-header h3,
#sidebar.sidebar-collapsed .CTAs {
    display: none;
}

#sidebar.sidebar-collapsed .sidebar-header strong {
    display: block;
}

#sidebar ul li a {
    text-align: left;
}

#sidebar.sidebar-collapsed ul li a {
    padding: 20px 10px;
    text-align: center;
    font-size: 0.85em;
}

#sidebar.sidebar-collapsed ul li a i {
    margin-right: 0;
    display: block;
    font-size: 1.8em;
    margin-bottom: 5px;
}

/* Same dropdown links padding*/
#sidebar.sidebar-collapsed ul ul a {
    padding: 10px !important;
}

/* Changing the arrow position to bottom center position,
   translateX(50%) works with right: 50%
   to accurately  center the arrow */
#sidebar.sidebar-collapsed .dropdown-toggle::after {
    top: auto;
    bottom: 10px;
    right: 50%;
    -webkit-transform: translateX(50%);
    -ms-transform: translateX(50%);
    transform: translateX(50%);
}

.sidebar-header {
    padding: 20px;
    background: var(--patitur-sidebar-bg, #1E2939);
    border-bottom: 1px solid rgba(0, 212, 170, 0.2);
}

.sidebar-header h3 {
    color: #fff;
    margin: 0;
}

.sidebar-header .btn-link {
    color: #fff;
    padding: 0;
    font-size: 1.2rem;
}

.sidebar-header .btn-link:hover {
    color: #fff;
    opacity: 0.8;
}

.sidebar-header .btn-link:focus {
    box-shadow: none;
}

.sidebar-header .btn-link i {
    transition: transform 0.3s ease;
}

#sidebar.sidebar-collapsed .sidebar-header .btn-link i {
    transform: rotate(180deg);
}

#sidebar .sidebar-header strong {
    display: none;
    font-size: 1.8em;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
}

#sidebar ul li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin: 2px 8px;
    transition: all 0.2s ease;
}

#sidebar ul li a i {
    margin-right: 10px;
}

#sidebar ul li.active>a,
a[aria-expanded="true"] {
    color: #fff;
    background: linear-gradient(135deg, var(--patitur-green-primary, #01E4BF) 0%, var(--patitur-green-secondary, #0FB39C) 100%);
    border-radius: 8px;
    margin: 4px 8px;
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.3);
    font-weight: 600;
}

a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: transparent;
    color: #a0b3b8;
}

ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}

a.download {
    background: #fff;
    color: #7386D5;
}

a.article,
a.article:hover {
    background: #6d7fcc !important;
    color: #fff !important;
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
    background: transparent;
    margin-left: 250px; /* Account for sidebar width when expanded */
}

/* Adjust content margin when sidebar is collapsed */
.wrapper.sidebar-collapsed #content {
    margin-left: 80px; /* Account for collapsed sidebar width */
}

/* Responsive: On mobile, sidebar overlays content */
@media (max-width: 768px) {
    #content {
        margin-left: 0;
    }

    .wrapper.sidebar-collapsed #content {
        margin-left: 0;
    }
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

@media (max-width: 768px) {
    #sidebar {
        min-width: 80px;
        max-width: 80px;
        text-align: center;
        margin-left: -80px !important;
    }
    .dropdown-toggle::after {
        top: auto;
        bottom: 10px;
        right: 50%;
        -webkit-transform: translateX(50%);
        -ms-transform: translateX(50%);
        transform: translateX(50%);
    }
    #sidebar.sidebar-collapsed {
        margin-left: 0 !important;
    }
    #sidebar .sidebar-header h3,
    #sidebar .CTAs {
        display: none;
    }
    #sidebar .sidebar-header strong {
        display: block;
    }
    #sidebar ul li a {
        padding: 20px 10px;
    }
    #sidebar ul li a span {
        font-size: 0.85em;
    }
    #sidebar ul li a i {
        margin-right: 0;
        display: block;
    }
    #sidebar ul ul a {
        padding: 10px !important;
    }
    #sidebar ul li a i {
        font-size: 1.3em;
    }
    #sidebar {
        margin-left: 0;
    }
    #sidebarCollapse span {
        display: none;
    }
}

.profile-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.profile-info {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.profile-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.profile-section:last-child {
    border-bottom: none;
}

.profile-section h3 {
    color: #333;
    margin-bottom: 15px;
}

.profile-picture {
    max-width: 200px;
    border-radius: 50%;
    margin: 10px 0;
}

.profile-actions {
    margin-top: 20px;
    text-align: right;
}

.profile-actions .btn {
    padding: 8px 20px;
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-container {
        padding: 10px;
    }

    .profile-info {
        padding: 15px;
    }

    .profile-picture {
        max-width: 150px;
    }
}

/* Edit Profile Form Styles */
.edit-profile-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-control:focus {
    border-color: #7386D5;
    outline: none;
    box-shadow: 0 0 0 2px rgba(115, 134, 213, 0.25);
}

.form-text {
    font-size: 0.875em;
    color: #6c757d;
    margin-top: 4px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: #5a6268;
    color: white;
}

/* Responsive adjustments for edit form */
@media (max-width: 768px) {
    .edit-profile-form {
        padding: 0 15px;
    }

    .form-control {
        font-size: 14px;
    }
}

/* Login Page Styles */
.login-card {
    margin-top: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
}

.login-card .card-body {
    padding: 30px;
}

.login-card .card-title {
    color: #333;
    font-size: 24px;
    font-weight: 500;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    color: #555;
    font-weight: 500;
    margin-bottom: 8px;
}

.login-form .form-control {
    height: 45px;
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    font-size: 16px;
}

.login-form .form-control:focus {
    border-color: #7386D5;
    box-shadow: 0 0 0 0.2rem rgba(115, 134, 213, 0.25);
}

.login-form .btn-primary {
    height: 45px;
    font-size: 16px;
    font-weight: 500;
    background-color: #7386D5;
    border-color: #7386D5;
}

.login-form .btn-primary:hover {
    background-color: #5a6bc0;
    border-color: #5a6bc0;
}

.login-form .alert {
    margin-top: 20px;
    padding: 12px;
    border-radius: 4px;
}

.login-form a {
    color: #7386D5;
    text-decoration: none;
}

.login-form a:hover {
    color: #5a6bc0;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .login-card {
        margin-top: 20px;
    }

    .login-card .card-body {
        padding: 20px;
    }
}

/* Flash Messages Styles */
#flash-messages-container {
    margin-bottom: 20px;
}

#flash-messages-container .flash {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid transparent;
}

#flash-messages-container .flash.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

#flash-messages-container .flash.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

#flash-messages-container .flash.warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

#flash-messages-container .flash.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* Add animation for flash messages */
@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#flash-messages-container .flash {
    animation: slideDown 0.3s ease-out;
}
