/* ===========================================
   FIREHUB ADMIN SPECIFIC STYLES
   =========================================== */

/* Admin Navigation Improvements */
.nav-wrapper .brand-logo {
    height: 100% !important;
    padding: 5px 10px;
}

.nav-wrapper .brand-logo img {
    height: 50px;
    width: auto;
}

/* Admin Sidebar Improvements */
.sidenav li > a > i, 
.sidenav li > a > [class^="mdi-"], 
.sidenav li > a li > a > [class*="mdi-"], 
.sidenav li > a > i.material-icons {
    margin: 0 16px 0 0 !important;
}

/* Module Selection Styling */
.module-selection {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.module-selection h4 {
    color: #C91F0C;
    margin-bottom: 15px;
    font-weight: 600;
}

.module-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.module-item:last-child {
    border-bottom: none;
}

.module-item label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin: 0;
}

.module-item input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: #C91F0C;
    cursor: pointer;
}

.module-item input[type="checkbox"]:checked {
    accent-color: #C91F0C;
    background-color: #C91F0C;
    border-color: #C91F0C;
}

/* Status checkbox styling */
#active {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: #C91F0C;
    cursor: pointer;
}

#active:checked {
    accent-color: #C91F0C;
    background-color: #C91F0C;
    border-color: #C91F0C;
}

/* Roadmap styling */
.roadmap-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.roadmap-month {
    flex: 1;
    min-width: 300px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.roadmap-month-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #C91F0C;
}

.roadmap-month-header h4 {
    margin: 0;
    color: #C91F0C;
    font-size: 18px;
    font-weight: 600;
}

.roadmap-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.roadmap-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
}

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

.roadmap-item.app {
    border-left-color: #2196F3;
}

.roadmap-item.web {
    border-left-color: #FF9800;
}

.roadmap-item.plugin {
    border-left-color: #4CAF50;
}

.roadmap-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
    min-width: 80px;
}

.roadmap-item-header i {
    font-size: 16px;
}

.roadmap-type {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roadmap-item-content {
    flex: 1;
}

.roadmap-version {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    margin-bottom: 4px;
}

.roadmap-date {
    color: #666;
    font-size: 14px;
}

.roadmap-item-actions {
    margin-left: 15px;
}

.module-item .module-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.module-item .module-description {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin-left: 24px;
}

/* Removed selected class styles - not needed */

/* Tab Improvements */
.tabs .tab a {
    color: #C91F0C !important;
    font-weight: 500;
}

.tabs .tab a:hover {
    background-color: rgba(201, 31, 12, 0.1);
    color: #C91F0C !important;
}

.tabs .tab a.active {
    background-color: rgba(201, 31, 12, 0.1);
    color: #C91F0C !important;
}

/* Button Improvements */
.btn.fh-color-main {
    background-color: #C91F0C !important;
    border-radius: 6px;
    font-weight: 500;
    text-transform: none;
}

.btn.fh-color-main:hover {
    background-color: #A61A0A !important;
}

/* Form Improvements */
.input-field input:focus + label {
    color: #C91F0C !important;
}

.input-field input:focus {
    border-bottom: 2px solid #C91F0C !important;
    box-shadow: 0 1px 0 0 #C91F0C !important;
}

/* Card Improvements */
.card {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Collection Improvements */
.collection {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.collection .collection-item {
    border-bottom: 1px solid #eee;
}

.collection .collection-item:last-child {
    border-bottom: none;
}

/* Status Indicators */
.status-active {
    border-left: 5px solid #4CAF50;
}

.status-trial {
    border-left: 5px solid #FF9800;
}

.status-inactive {
    border-left: 5px solid #F44336;
}

/* Mobile Responsiveness */
@media only screen and (max-width: 992px) {
    .module-selection {
        margin: 10px 0;
        padding: 15px;
    }
    
    .module-item .module-description {
        margin-left: 0;
        margin-top: 5px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error Messages */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 10px 0;
}

.alert-success {
    background-color: #E8F5E8;
    color: #2E7D32;
    border-left: 4px solid #4CAF50;
}

.alert-error {
    background-color: #FFEBEE;
    color: #C62828;
    border-left: 4px solid #F44336;
}

.alert-info {
    background-color: #E3F2FD;
    color: #1565C0;
    border-left: 4px solid #2196F3;
}

/* Modern Login Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: 'Varela Round', sans-serif;
}

.containerLanding {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.welcome-panel {
    flex: 1;
    color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.welcome-panel h2,
.welcome-panel p {
    font-family: 'Varela Round';
}

.welcome-content {
    position: absolute;
    transform: translateX(-80%);
    text-align: center;
    z-index: 2;
}

.welcome-panel img {
    max-width: 65%;
}

.welcome-panel p {
    line-height: 1.6;
    margin-top: 10px;
    font-size: 20px;
}

.footer-links {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: grey;
}

.footer-links a {
    color: grey;
    text-decoration: none;
    margin: 0 6px;
    opacity: 0.9;
    font-family: 'Varela Round';
}

.footer-links span {
    margin: 0 4px;
}

.form-container {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    color: #333;
}

.form-container h2 {
    text-align: center;
    font-size: 2rem;
    color: #C91F0C;
    margin-bottom: 30px;
}

.form-container label, .form-container input {
    font-family: 'Varela Round', sans-serif;
    line-height: 5px;
}

form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.input-field {
    position: relative;
    margin-bottom: 20px;
}

.input-field label {
    position: absolute;
    top: 15px;
    left: 12px;
    font-size: 14px;
    color: #999;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 5px;
}

.input-field input:focus + label,
.input-field input:valid + label {
    top: -8px;
    left: 8px;
    font-size: 12px;
    color: #C91F0C;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 15px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #C91F0C;
    box-shadow: 0 0 0 3px rgba(201, 31, 12, 0.1);
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.signup-btn {
    flex: 1;
    padding: 15px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background-color: #C91F0C;
    color: white;
    font-family: 'Varela Round', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signup-btn:hover {
    background-color: #A61A0A;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 31, 12, 0.3);
}

.signup-btn:active {
    background-color: #a11608;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    transform: translateY(0);
}

.signup-btn:focus {
    outline: none;
    background-color: #C91F0C !important;
    box-shadow: 0 0 0 3px rgba(201, 31, 12, 0.2);
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    background: #FFEBEE;
    color: #C62828;
    border-left: 4px solid #F44336;
    display: none;
}

.form-message:not(:empty) {
    display: block;
}

@media (max-width: 1500px) {
    .welcome-content {
        transform: none;
        top: 20px;
    }
}

@media (max-width: 1200px) {
    .welcome-content h2, .welcome-content p{
        display: none;
    }
}

@media (max-height: 900px) and (max-width: 1500px) {
    .welcome-content h2,
    .welcome-content p {
        display: none;
    }

    .welcome-content {
        top: 5%;
    }
}

/* Override browser default button colors */
button, input[type="button"], input[type="submit"], input[type="reset"] {
    /* color: white !important; */
    border: none !important;
}

button:active, input[type="button"]:active, input[type="submit"]:active, input[type="reset"]:active {
    background-color: #A61A0A !important;
    color: white !important;
}

button:focus, input[type="button"]:focus, input[type="submit"]:focus, input[type="reset"]:focus {
    background-color: #C91F0C !important;
    color: white !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(201, 31, 12, 0.2) !important;
}

/* Home Page Styles */
.dashboard-container {
    padding: 20px;
}

.dashboard-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.dashboard-title h1 {
    margin: 0;
    font-size: 2.2rem;
    color: #333;
    font-weight: 600;
}

.dashboard-title i {
    color: #C91F0C;
    font-size: 2rem;
}

.dashboard-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    color: #C91F0C;
    margin-bottom: 15px;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.quick-actions {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.quick-actions h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-actions h3 i {
    color: #C91F0C;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #C91F0C;
    color: white;
    border-color: #C91F0C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 31, 12, 0.3);
}

.action-btn i {
    font-size: 1.2rem;
}

/* Revenue History Styles */
.revenue-history {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.revenue-history h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.revenue-history h4 i {
    color: #C91F0C;
}

.revenue-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.revenue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #C91F0C;
}

.revenue-year {
    font-weight: 600;
    color: #333;
}

.revenue-amount {
    font-weight: 700;
    color: #C91F0C;
}

/* Operation Detail Styles */
.operation-detail-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #C91F0C;
}

.operation-detail-card h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.operation-detail-card h4 i {
    color: #C91F0C;
}

.operation-details p {
    margin: 8px 0;
    padding: 6px 0;
    border-bottom: 1px solid #e9ecef;
}

.operation-details p:last-child {
    border-bottom: none;
}

.operation-title {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.operation-date {
    color: #666;
}

.operation-address {
    color: #666;
}

.operation-category {
    color: #C91F0C;
    font-weight: 500;
}

.operation-description {
    color: #333;
}

.operation-issued {
    color: #666;
    font-size: 0.9rem;
}

.operation-organization {
    color: #666;
    font-size: 0.9rem;
}

.operations-list h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.operations-list h4 i {
    color: #C91F0C;
}

.operation-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.operation-item:hover {
    background: #f8f9fa;
    border-left-color: #C91F0C;
}

/* Management Home Styles */
.management-dashboard {
    padding: 20px;
}

.management-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.management-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.management-title h1 {
    margin: 0;
    font-size: 2.2rem;
    color: #333;
    font-weight: 600;
}

.management-title i {
    color: #C91F0C;
    font-size: 2rem;
}

.management-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.management-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.management-card:hover {
    transform: translateY(-2px);
}

.management-card h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.management-card h3 i {
    color: #C91F0C;
}

.management-card p {
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.management-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.management-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
}

.management-btn:hover {
    background: #C91F0C;
    color: white;
    border-color: #C91F0C;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(201, 31, 12, 0.3);
}

.management-btn i {
    font-size: 1.1rem;
}

/* Profile Page Styles */
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #C91F0C;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.profile-item:hover::before {
    transform: scaleY(1);
}

.profile-item:hover {
    background: white;
    border-color: #C91F0C;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 31, 12, 0.1);
}

.profile-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #333;
    min-width: 180px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-label i {
    color: #C91F0C;
    font-size: 1.3rem;
    width: 24px;
    transition: transform 0.3s ease;
}

.profile-item:hover .profile-label i {
    transform: scale(1.1);
}

.profile-value {
    color: #666;
    font-size: 1.1rem;
    flex: 1;
    font-weight: 500;
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.profile-item:hover .profile-value {
    border-color: #C91F0C;
    color: #333;
    box-shadow: 0 2px 8px rgba(201, 31, 12, 0.1);
}

/* Enhanced Card Styles */
.search-filter-card,
.results-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-filter-card:hover,
.results-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: #f8f9fa;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(201, 31, 12, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #C91F0C;
}

.card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.card-header h3 i {
    color: #C91F0C;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.card-header h3:hover i {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
}

/* Enhanced Button Styles */
.btn.fh-color-main {
    background: #C91F0C !important;
    color: white !important;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 31, 12, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn.fh-color-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn.fh-color-main:hover::before {
    left: 100%;
}

.btn.fh-color-main:hover {
    background: #A61A0A !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 31, 12, 0.4);
}

.btn.fh-color-main:active {
    background: #A61A0A !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(201, 31, 12, 0.3);
}

.btn.fh-color-main:focus {
    background: #C91F0C !important;
    outline: none;
    box-shadow: 0 4px 15px rgba(201, 31, 12, 0.3), 0 0 0 3px rgba(201, 31, 12, 0.2);
}

/* Live Operations Enhanced Styles */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 31, 12, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(201, 31, 12, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #C91F0C;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.live-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #C91F0C;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.operations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .operations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.operation-detail-section {
    min-height: 400px;
}

.operation-detail-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(201, 31, 12, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(201, 31, 12, 0.1);
}

.detail-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-header h4 i {
    color: #C91F0C;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.operation-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-label i {
    color: #C91F0C;
    width: 14px;
}

.detail-value {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    word-break: break-word;
}

.operations-list-section {
    min-height: 400px;
}

.operations-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(201, 31, 12, 0.1);
}

.operations-list-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.operations-list-header h4 i {
    color: #C91F0C;
}

.operations-count {
    background: rgba(201, 31, 12, 0.1);
    color: #C91F0C;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.operations-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 5px;
}

.operations-container::-webkit-scrollbar {
    width: 4px;
}

.operations-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.operations-container::-webkit-scrollbar-thumb {
    background: #C91F0C;
    border-radius: 2px;
}

.operation-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
}

.operation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #C91F0C;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.operation-card:hover::before {
    transform: scaleY(1);
}

.operation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #C91F0C;
}

.operation-card.selected {
    border-color: #C91F0C;
    background: rgba(201, 31, 12, 0.05);
    box-shadow: 0 4px 15px rgba(201, 31, 12, 0.2);
}

.operation-card.selected::before {
    transform: scaleY(1);
}

.operation-icon {
    position: relative;
    flex-shrink: 0;
}

.operation-type-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
    background: #f8f9fa;
    padding: 6px;
}

.operation-content {
    flex: 1;
    min-width: 0;
}

.operation-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.operation-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #666;
}

.operation-time {
    color: #C91F0C;
    font-weight: 600;
}

.operation-org {
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.operation-status {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.live {
    background: #28a745;
}

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

.no-operations i {
    font-size: 3rem;
    color: #C91F0C;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-operations p {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

/* Invoice Specific Styles */
.invoice-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    gap: 20px;
}

.invoice-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.invoice-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.invoice-icon {
    width: 40px;
    height: 40px;
    background: #C91F0C;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.invoice-details {
    flex: 1;
    min-width: 0;
}

.invoice-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.invoice-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.invoice-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.3;
}

.invoice-meta-item i {
    color: #999;
    width: 14px;
    font-size: 12px;
    flex-shrink: 0;
}

.invoice-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.invoice-price {
    font-size: 18px;
    font-weight: 700;
    color: #C91F0C;
    text-align: right;
    min-width: 80px;
}

.invoice-status-badge {
    display: flex;
    align-items: center;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.orange {
    background: #ff9800;
    color: white;
}

.status-badge.green {
    background: #4caf50;
    color: white;
}

.status-badge.blue {
    background: #2196f3;
    color: white;
}

.invoice-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.invoice-actions .action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 0;
    min-width: 32px;
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
    border: 1px solid #e0e0e0;
    background: white;
    color: #666;
}

.invoice-actions .action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    background: #f5f5f5;
}

.invoice-actions .action-btn.delete-btn:hover {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

/* Issue and Version specific styles */
.issue-item {
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
}

.issue-item:hover {
    border-left-color: #C91F0C;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.status-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-1 {
    background: #ff9800;
    color: white;
}

.status-badge.status-2 {
    background: #2196f3;
    color: white;
}

.status-badge.status-3 {
    background: #9c27b0;
    color: white;
}

.status-badge.status-4 {
    background: #4caf50;
    color: white;
}

.version-item {
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
}

.version-item:hover {
    border-left-color: #C91F0C;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.version-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
}

.version-description {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
    display: block;
}

.list-date {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.invoice-content {
    flex: 1;
    min-width: 0;
}

.invoice-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 16px;
}

.invoice-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.invoice-actions {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 12px;
    min-width: 200px;
    justify-content: flex-end;
}

/* Invoice specific action buttons */
.invoice-actions .action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    flex-shrink: 0;
    padding: 0;
    min-width: auto;
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
}

.invoice-actions .action-btn:hover {
    background: #C91F0C;
    color: white;
    border-color: #C91F0C;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 31, 12, 0.3);
}

.invoice-actions .action-btn.delete-btn:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.invoice-actions .action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.invoice-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Filter Select Styles */
.filter-select {
    margin-bottom: 15px;
    position: relative;
}

.filter-select label {
    position: absolute;
    top: 15px;
    left: 12px;
    font-size: 14px;
    color: #999;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 5px;
    z-index: 1;
}

.filter-select select:focus + label,
.filter-select select:valid + label {
    top: -8px;
    left: 8px;
    font-size: 12px;
    color: #C91F0C;
}

.filter-select select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
    min-height: 56px;
    line-height: 1.5;
}

.filter-select select:focus {
    outline: none;
    border-color: #C91F0C;
    box-shadow: 0 4px 15px rgba(201, 31, 12, 0.1);
    transform: translateY(-1px);
}

.filter-select select:hover {
    border-color: #C91F0C;
    box-shadow: 0 2px 12px rgba(201, 31, 12, 0.1);
}

#clearFilters {
    background: #f8f9fa !important;
    color: #666 !important;
    border: 2px solid #e9ecef !important;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#clearFilters:hover {
    background: #C91F0C !important;
    color: white !important;
    border-color: #C91F0C !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 31, 12, 0.3);
}

#clearFilters:active {
    background: #A61A0A !important;
    border-color: #A61A0A !important;
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(201, 31, 12, 0.3);
}

.list-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.list-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.action-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.action-btn {
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    background: #C91F0C;
    color: white;
    border-color: #C91F0C;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 31, 12, 0.4);
}

.action-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.action-btn:hover i {
    transform: scale(1.1);
}

.action-btn.delete-btn:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.action-btn:active {
    background: #A61A0A !important;
    border-color: #A61A0A !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(201, 31, 12, 0.3);
}

.action-btn:focus {
    background: #C91F0C !important;
    border-color: #C91F0C !important;
    color: white !important;
    outline: none;
    box-shadow: 0 4px 15px rgba(201, 31, 12, 0.3), 0 0 0 3px rgba(201, 31, 12, 0.2);
}

.action-btn.delete-btn:active {
    background: #c82333 !important;
    border-color: #c82333 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.action-btn.delete-btn:focus {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
    outline: none;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3), 0 0 0 3px rgba(220, 53, 69, 0.2);
}

/* Badge Styles */
.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge.orange {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.badge.green {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.badge.blue {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

/* Search functionality for invoices */
#searchInputInvoices {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#searchInputInvoices:focus {
    outline: none;
    border-color: #C91F0C;
    box-shadow: 0 4px 15px rgba(201, 31, 12, 0.1);
    transform: translateY(-1px);
}

#searchInputInvoices::placeholder {
    color: #999;
    font-style: italic;
}

/* Sort functionality for invoices */
#sortDateInvoices,
#sortPriceInvoices {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

#sortDateInvoices:hover,
#sortPriceInvoices:hover {
    color: #C91F0C;
}

/* Form Validation Styles */
.input-field input.invalid,
.input-field select.invalid {
    border-color: #f44336 !important;
    border-bottom-color: #f44336 !important;
    box-shadow: 0 1px 0 0 #f44336 !important;
}

.input-field input.invalid:focus,
.input-field select.invalid:focus {
    border-color: #f44336 !important;
    border-bottom-color: #f44336 !important;
    box-shadow: 0 1px 0 0 #f44336 !important;
}

.validation-error {
    color: #f44336 !important;
    font-size: 12px !important;
    margin-top: 5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.validation-error i {
    font-size: 16px !important;
    vertical-align: middle !important;
}

/* Profile Item Styles */
.profile-item {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #C91F0C;
}

.profile-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.profile-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    background: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

/* Switch Component Styles */
.switch {
    margin: 20px 0;
}

.switch p {
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.switch label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.switch input[type="checkbox"] {
    display: none;
}

.switch .lever {
    position: relative;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 20px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.switch .lever:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.switch input[type="checkbox"]:checked + .lever {
    background-color: #C91F0C;
}

.switch input[type="checkbox"]:checked + .lever:before {
    transform: translateX(20px);
}

.switch label:hover .lever {
    background-color: #bbb;
}

.switch input[type="checkbox"]:checked + .lever:hover {
    background-color: #A61A0A;
}
