@import url('./variables.css');

/* Detail Page Styles */
.detail-page {
  /* Component-specific variables */
  --input-bg: var(--gray-50);
  --input-border: var(--gray-200);
  --input-focus-border: var(--primary-color);
  --input-radius: var(--border-radius-lg);
  --input-padding: var(--spacing-sm) var(--spacing-md);
  --input-height: 48px;
  --label-bg: var(--light-color);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c5eff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
}

/* Form Elements - Updated */
.detail-page .select-div {
  position: relative;
  margin: var(--spacing-sm) 0;
  width: 100%;
  background: var(--gray-50);
  border-radius: var(--border-radius-lg);
  border: 2px solid var(--gray-200);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.detail-page .select-div:hover {
  border-color: var(--primary-color);
}

.detail-page .select-div:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(108, 94, 255, 0.2);
}

.detail-page .select-div select {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-xl) var(--spacing-sm) var(--spacing-md);
  font-size: 1rem;
  background: var(--gray-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c5eff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right var(--spacing-md) center;
  border: none;
  border-radius: var(--border-radius-md);
  color: var(--gray-800);
  height: 48px;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.detail-page .select-div select:focus {
  outline: none;
  box-shadow: none;
}

/* Label for select */
.detail-page .select-div label {
  position: absolute;
  top: 0;
  left: 12px;
  padding: 0 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary-color);
  background: var(--light-color);
  border-radius: var(--border-radius-sm);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  transition: all 0.2s ease;
}

/* Input Styles - Updated */
.detail-page .input-div {
  position: relative;
  margin: var(--spacing-sm) 0;
  width: 100%;
  background: var(--gray-50);
  border-radius: var(--border-radius-lg);
  border: 2px solid var(--gray-200);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.detail-page .input-div:hover {
  border-color: var(--primary-color);
}

.detail-page .input-div input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 1rem;
  background: transparent;
  border: none;
  border-radius: var(--border-radius-md);
  color: var(--gray-800);
  height: 48px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.detail-page .input-div input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(108, 94, 255, 0.2);
}

.detail-page .input-div span {
  position: absolute;
  top: 0;
  left: 12px;
  padding: 0 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary-color);
  background: var(--light-color);
  border-radius: var(--border-radius-sm);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  transition: all 0.2s ease;
}

/* Keep the label at the top when input has value */
.detail-page .input-div input:not(:placeholder-shown) + span,
.detail-page .input-div input:focus + span {
  top: 0;
  transform: translateY(-50%);
  background: var(--light-color);
  padding: 0 8px;
}

/* Animations */
/* Animation removed as per request */

/* Card Styles */
.detail-page .card {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-md);
  background: #ffffff;
  overflow: hidden;
  transition: transform var(--transition-normal), 
              box-shadow var(--transition-normal);
}

.detail-page .card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.detail-page .card-header {
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--light-color);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

.detail-page .card-body {
  padding: var(--spacing-md);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .detail-page .select-div,
  .detail-page .input-div {
    margin: var(--spacing-xs) 0;
  }
  
  .detail-page .select-div select,
  .detail-page .input-div input {
    padding: 0.8rem 1.2rem;
    height: 52px;
    font-size: 0.95rem;
  }
  
  .detail-page .select-div {
    background-position: right 12px center;
  }
}

/* Styles spécifiques aux pages de détail */
.detail-page .content-wrapper {
  padding: var(--spacing-md);
}

.detail-page .input-text h4 {
  color: var(--primary-color) !important;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1.25rem !important;
}

.detail-page .badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.875rem;
}

/* Styles pour les cartes de statut */
.detail-page .release-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.detail-page .release-card-approved {
  border-left: 5px solid #28a745;
  background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

.detail-page .release-card-pending {
  border-left: 5px solid #ffc107;
  background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 94, 255, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .select-div {
        margin: 0.8rem 0;
    }
    
    .select-div select {
        padding: 0.8rem 1.2rem;
        height: 52px;
        font-size: 0.95rem;
        background-position: right 12px center;
        padding-right: 40px;
    }
    
    .select-div span {
        font-size: 0.75rem;
    }
}

/* Modern Input Styles */
.input-div {
    position: relative;
    margin: 1rem 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(108, 94, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.input-div:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 94, 255, 0.2);
}

.input-div input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #2d3748;
    transition: all 0.3s ease;
    height: 56px;
    box-sizing: border-box;
}

.input-div input:focus {
    outline: none;
    box-shadow: none;
}

.input-div span {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 18px !important;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s ease;
    background: white;
    padding: 0 5px;
    border-radius: 4px;
    opacity: 0.9;
    width:fit-content;
}

.detail-page .input-div input:focus + span,
.detail-page .input-div input:not(:placeholder-shown) + span {
    top: 0;
    font-size: 0.8rem;
    color: #6c5eff;
    transform: translateY(-50%);
    background: white;
    padding: 0 10px;
    z-index: 1;
    animation: float-up 0.2s ease-out forwards;
}

/* Floating animation */
@keyframes float-up {
    from {
        top: 50%;
        font-size: 1rem;
        color: #718096;
    }
    to {
        top: 0;
        font-size: 0.8rem;
        color: #6c5eff;
    }
}

/* For number input arrows */
.detail-page .input-div input[type="number"]::-webkit-inner-spin-button,
.detail-page .input-div input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.detail-page .input-div input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

/* Hover effects */
.detail-page .input-div:hover {
    border-color: rgba(108, 94, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Focus state */
.input-div:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 94, 255, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .input-div {
        margin: 0.8rem 0;
    }
    
    .input-div input {
        padding: 0.8rem 1.2rem;
        height: 52px;
        font-size: 0.95rem;
    }
    
    .input-div span {
        font-size: 0.9rem;
    }
}


/* Partner Selection Styles */
.input-text.mb-3 {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    margin-bottom: 25px !important;
}

.input-text.mb-3:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.input-text.mb-3 h4 {
    color: #6c5eff !important;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 20px !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-text.mb-3 h4 i {
    font-size: 1.5rem;
    color: #6c5eff;
}

.select-div {
    position: relative;
    width: 100%;
}

.partner-select {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    color: #495057;
    background-color: #fff;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c5eff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px 16px;
    padding-right: 45px;
}

.partner-select:focus {
    border-color: #6c5eff;
    box-shadow: 0 0 0 0.2rem rgba(108, 94, 255, 0.25);
    outline: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .input-text.mb-3 {
        padding: 15px;
    }
    
    .input-text.mb-3 h4 {
        font-size: 1.1rem;
    }
    
    .partner-select {
        padding: 10px 15px;
        padding-right: 40px;
    }
}


/* Card Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Detail Page Container */
.content-wrapper.container .page-content {
    animation: fadeInUp 0.6s ease-out;
}

/* Card Styling - Exclude dashboard cards */
.content-wrapper .card:not(.dashboard-card) {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    background: #ffffff;
    overflow: hidden;
}

.content-wrapper .card:not(.dashboard-card):hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

/* Card Header - Exclude dashboard cards */
.content-wrapper .card:not(.dashboard-card) .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
}

.content-wrapper .card:not(.dashboard-card) .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.content-wrapper .card:not(.dashboard-card) .card-header h4 {
    margin: 0;
    font-weight: 600;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

/* State Badge in Card Header */
.content-wrapper .card:not(.dashboard-card) .card-header .state-badge {
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s ease-in-out infinite, fadeInUp 0.6s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.content-wrapper .card:not(.dashboard-card) .card-header .state-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.content-wrapper .card:not(.dashboard-card) .card-header .state-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.content-wrapper .card:not(.dashboard-card) .card-header .d-flex {
    width: 100%;
}

/* Card Body - Exclude dashboard cards */
.content-wrapper .card:not(.dashboard-card) .card-body {
    padding: 2rem;
    animation: slideInRight 0.8s ease-out;
}

/* Information Paragraphs - Exclude dashboard cards */
.content-wrapper .card:not(.dashboard-card) .card-body p {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border-left: 4px solid transparent;
}

.content-wrapper .card:not(.dashboard-card) .card-body p:hover {
    background: #e9ecef;
    border-left-color: #667eea;
    transform: translateX(5px);
}

.content-wrapper .card:not(.dashboard-card) .card-body p strong {
    color: #495057;
    font-weight: 600;
    display: inline-block;
    min-width: 150px;
}

/* Badge Styling */
.content-wrapper .badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.content-wrapper .badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.badge-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.badge-secondary {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    color: white;
}

/* Buttons Styling */
.content-wrapper .btn {
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.content-wrapper .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.content-wrapper .btn:hover::before {
    width: 300px;
    height: 300px;
}

.content-wrapper .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.content-wrapper .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.content-wrapper .btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.content-wrapper .btn-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.content-wrapper .btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.content-wrapper .btn-danger {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

/* Related Items Section */
.content-wrapper .row.mt-4 h5 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
    display: inline-block;
    animation: fadeInUp 0.8s ease-out;
}

.content-wrapper .d-flex.flex-wrap.gap-2 {
    gap: 0.75rem !important;
}

.content-wrapper .d-flex.flex-wrap.gap-2 .btn-sm {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.content-wrapper .d-flex.flex-wrap.gap-2 .btn-sm:nth-child(1) {
    animation-delay: 0.1s;
}

.content-wrapper .d-flex.flex-wrap.gap-2 .btn-sm:nth-child(2) {
    animation-delay: 0.2s;
}

.content-wrapper .d-flex.flex-wrap.gap-2 .btn-sm:nth-child(3) {
    animation-delay: 0.3s;
}

.content-wrapper .d-flex.flex-wrap.gap-2 .btn-sm:nth-child(4) {
    animation-delay: 0.4s;
}

.content-wrapper .d-flex.flex-wrap.gap-2 .btn-sm:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Links in paragraphs - Exclude dashboard cards */
.content-wrapper .card:not(.dashboard-card) .card-body p a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.content-wrapper .card:not(.dashboard-card) .card-body p a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
    transform: translateX(3px);
}

/* Page Title */
.content-wrapper .divider-text h1 {
    color: #2d3748;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    animation: fadeInUp 0.5s ease-out;
}

.content-wrapper .divider-text h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    animation: slideInRight 0.8s ease-out;
}

/* Back Button */
.content-wrapper .btn-primary i.fa-arrow-left {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.content-wrapper .btn-primary:hover i.fa-arrow-left {
    transform: translateX(-3px);
}

/* Action Buttons Container */
.content-wrapper .d-flex.justify-content-end {
    animation: slideInRight 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper .card:not(.dashboard-card) .card-body {
        padding: 1.5rem;
    }
    
    .content-wrapper .card:not(.dashboard-card) .card-body p strong {
        min-width: 120px;
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .content-wrapper .divider-text h1 {
        font-size: 1.5rem;
    }
    
    .content-wrapper .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .content-wrapper .d-flex.justify-content-end {
        width: 100%;
        justify-content: flex-start !important;
    }
}

/* Loading Animation for Buttons */
@keyframes buttonLoading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.content-wrapper .btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.content-wrapper .btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: buttonLoading 0.6s linear infinite;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Tabs Styling */
.content-wrapper .nav-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out;
}

.content-wrapper .nav-tabs .nav-item {
    margin-bottom: -2px;
}

.content-wrapper .nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    background: transparent;
    position: relative;
}

.content-wrapper .nav-tabs .nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    border-bottom-color: rgba(102, 126, 234, 0.3);
}

.content-wrapper .nav-tabs .nav-link.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    border-bottom-color: #667eea;
    font-weight: 600;
}

.content-wrapper .nav-tabs .nav-link i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.content-wrapper .nav-tabs .nav-link:hover i,
.content-wrapper .nav-tabs .nav-link.active i {
    transform: scale(1.2);
}

.content-wrapper .tab-content {
    animation: fadeInUp 0.6s ease-out;
    min-height: 100px;
}

.content-wrapper .tab-pane {
    animation: fadeInUp 0.4s ease-out;
}

/* Empty State Styling */
.content-wrapper .empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    margin: 1rem 0;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.content-wrapper .empty-state::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.content-wrapper .empty-state-icon {
    font-size: 4rem;
    color: #adb5bd;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

.content-wrapper .empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.content-wrapper .empty-state-message {
    font-size: 1rem;
    color: #6c757d;
    position: relative;
    z-index: 1;
}

/* Icon Animations */
.content-wrapper .fa {
    transition: transform 0.3s ease;
}

.content-wrapper .btn:hover .fa {
    transform: scale(1.2);
}

/* Card Content Animation on Load - Exclude dashboard cards */
.content-wrapper .card:not(.dashboard-card) .card-body > * {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.content-wrapper .card:not(.dashboard-card) .card-body > *:nth-child(1) {
    animation-delay: 0.1s;
}

.content-wrapper .card:not(.dashboard-card) .card-body > *:nth-child(2) {
    animation-delay: 0.2s;
}

.content-wrapper .card:not(.dashboard-card) .card-body > *:nth-child(3) {
    animation-delay: 0.3s;
}

.content-wrapper .card:not(.dashboard-card) .card-body > *:nth-child(4) {
    animation-delay: 0.4s;
}

/* Modern Release Card Styles */
.release-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.release-card-header {
    padding: 1.25rem;
    border-bottom: 2px solid #e9ecef;
}

/* Release Card States */
.release-card-confirmed {
    border-left: 5px solid #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9f4 100%);
}

.release-card-confirmed .release-card-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.release-card-rejected {
    border-left: 5px solid #dc3545;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.release-card-rejected .release-card-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.release-card-open {
    border-left: 5px solid #17a2b8;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.release-card-open .release-card-header {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.release-card-default {
    border-left: 5px solid #6c757d;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.release-card-default .release-card-header {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

/* Release State Badge */
.release-state-badge {
    padding: 0.4em 0.8em;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: pulse 2s infinite;
}

.release-state-confirmed {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.release-state-rejected {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
}

.release-state-open {
    background: linear-gradient(45deg, #17a2b8, #138496);
    color: white;
}

.release-state-default {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    color: white;
}

/* Release Tab Button Styles in Escrow Detail */
.release-tab-btn {
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.release-tab-btn-confirmed {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: 2px solid #28a745;
}

.release-tab-btn-confirmed:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea080 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    color: white;
}

.release-tab-btn-rejected {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: 2px solid #dc3545;
}

.release-tab-btn-rejected:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    color: white;
}

.release-tab-btn-open {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border: 2px solid #17a2b8;
}

.release-tab-btn-open:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
    color: white;
}

.release-tab-btn-default {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: 2px solid #6c757d;
}

.release-tab-btn-default:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    color: white;
}

/* Release Tab Badge Styles */
.release-tab-badge {
    padding: 0.25em 0.5em;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.release-tab-badge-confirmed {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.release-tab-badge-rejected {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.release-tab-badge-open {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.release-tab-badge-default {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Quality Tab Button Styles in Escrow Detail */
.quality-tab-btn {
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.quality-tab-btn-confirmed {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: 2px solid #28a745;
}

.quality-tab-btn-confirmed:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea080 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    color: white;
}

.quality-tab-btn-open {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    border: 2px solid #ffc107;
}

.quality-tab-btn-open:hover {
    background: linear-gradient(135deg, #e0a800 0%, #f57c00 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    color: white;
}

.quality-tab-btn-default {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: 2px solid #6c757d;
}

.quality-tab-btn-default:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    color: white;
}

/* Quality Tab Badge Styles */
.quality-tab-badge {
    padding: 0.25em 0.5em;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quality-tab-badge-confirmed {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.quality-tab-badge-open {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.quality-tab-badge-default {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Demo Tab Button Styles in Escrow Detail */
.demo-tab-btn {
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.demo-tab-btn-confirmed {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: 2px solid #28a745;
}

.demo-tab-btn-confirmed:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea080 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    color: white;
}

.demo-tab-btn-open {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border: 2px solid #17a2b8;
}

.demo-tab-btn-open:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
    color: white;
}

.demo-tab-btn-default {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: 2px solid #6c757d;
}

.demo-tab-btn-default:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    color: white;
}

/* Demo Tab Badge Styles */
.demo-tab-badge {
    padding: 0.25em 0.5em;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-tab-badge-confirmed {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.demo-tab-badge-open {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.demo-tab-badge-default {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}


/*.container{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
}*/
.container .card{
    height:100%;
    width:100%;
    background-color:#fff;
    position:relative;
    box-shadow:0 15px 30px rgba(0,0,0,0.1);
    font-family: 'Cairo', sans-serif;
    border-radius:20px;
}
.container .card .form{
    width:100%;
    height:100%;

    display:flex;
}
 border-top-left-radius:20px;
 border-bottom-left-radius:20px;
  padding:20px 30px;
  box-sizing:border-box;

}
/*left-side-start*/
.left-heading{
    color:#fff;

}
.d-none{
   display:none;
}

/*left-side-end*/
.container .card .right-side{
    width:88%;
    background-color:#fff;
    height:100%;
  border-radius:20px;
}
/*right-side-start*/
.main{
    display:none;
}
.active{
    display:block;
}
.main{
    padding:40px;
}
.main small{
    display:flex;
    justify-content:center;
    align-items:center;
    margin-top:2px;
    height:30px;
    width:30px;
    background-color:#ccc;
    border-radius:50%;
    color:yellow;
    font-size:19px;
}
.text{
    margin-top:20px;
}
.congrats{
    text-align:center;
}
.text p{
    margin-top:10px;
    font-size:13px;
    font-weight:700;
    color:#000;
}
.input-text{
     display:flex;
    gap:20px;
}

.input-text .input-div{
    width:100%;
    position:relative;

}



input[type="text"]{
    width:100%;
    height:40px;
    border:none;
    outline:0;
    border-radius:5px;
    border:1px solid #cbced4;
    gap:20px;
    box-sizing:border-box;
    padding:0px 10px;
}
select{
    width:100%;
    height:40px;
    border:none;
    outline:0;
    background:white;
    border-radius:5px;
    border:1px solid #cbced4;
    gap:20px;
    box-sizing:border-box;
    padding:0px 10px;
}
.input-text .input-div span{
    position:absolute;
    top: -25px;
    left:10px;
    font-size:14px;
    transition:all 0.5s;
}
.input-div input:focus ~ span,.input-div input:valid ~ span  {
    top:-15px;
    left:6px;
    font-size:10px;
    font-weight:600;
}

.input-div span{
    top:-15px;
    left:6px;
    font-size:10px;
}
.buttons button{
    height:40px;
    width:100px;
    border:none;
    border-radius:5px;
    background-color:#0075ff;
    font-size:12px;
    color:#fff;
    cursor:pointer;
}
.button_space{
    display:flex;
    gap:20px;

}
.button_space button:nth-child(1){
    background-color:#fff;
    color:#000;
    border:1px solid#000;
}
.user_card{
    margin-top:20px;
    margin-bottom:40px;
    height:200px;
    width:100%;
    border:1px solid #c7d3d9;
    border-radius:10px;
    display:flex;
    overflow:hidden;
    position:relative;
    box-sizing:border-box;
}
.user_card span{
    height:80px;
    width:100%;
    background-color:#dfeeff;
}
.circle{
    position:absolute;
    top:40px;
    left:60px;
}
.circle span{
    height:70px;
    width:70px;
    background-color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    border:2px solid #fff;
    border-radius:50%;
}
.circle span img{
    width:100%;
    height:100%;
    border-radius:50%;
    object-fit:cover;
}
.social{
    display:flex;
    position:absolute;
    top:100px;
    right:10px;
}
.social span{
    height:30px;
    width:30px;
    border-radius:7px;
    background-color:#fff;
    border:1px solid #cbd6dc;
    display:flex;
    justify-content:center;
    align-items:center;
    margin-left:10px;
    color:#cbd6dc;

}
.social span i{
        cursor:pointer;
}
.heart{
    color:red !important;
}
.share{
        color:red !important;
}
.user_name{
    position:absolute;
    top:110px;
    margin:10px;
    padding:0 30px;
    display:flex;
    flex-direction:column;
    width:100%;

}
.user_name h3{
    color:#4c5b68;
}
.detail{
    /*margin-top:10px;*/
   display:flex;
   justify-content:space-between;
   margin-right:50px;
}
.detail p{
    font-size:12px;
    font-weight:700;

}
.detail p a{
    text-decoration:none;
    color:blue;
}
.checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #7ac142;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #fff;
  stroke-miterlimit: 10;
  margin: 10% auto;
  box-shadow: inset 0px 0px 0px #7ac142;
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes scale {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}
@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 30px #7ac142;
  }
}
.warning{
    border:1px solid red !important;
}


/*right-side-end*/
@media (max-width:750px) {
    .container{
        height:scroll;


    }
    .container .card {
        max-width: 350px;
        height:auto !important;
        margin:30px 0;
    }
    .container .card .right-side {
     width:100%;

    }
     .input-text{
         display:block;
     }

     .input-text .input-div{
  margin-top:20px;

}

}

input[type="number"] {
    width: 100%;
    height: 40px;
    border: none;
    outline: 0;
    border-radius: 5px;
    border: 1px solid #cbced4;
    gap: 20px;
    box-sizing: border-box;
    padding: 0px 10px;
}
.div_errer{
    display:none;
    color:red;
    font-weight:bold;
}

.tooltip-esc {
  position: relative;
  background: #52b7f8;
  padding: 5px 12px;
  margin: 5px;
  font-size: 15px;
  border-radius: 100%;
  color: #FFF;
}

.span_title:before,
.span_title:after {
  position: absolute;
  opacity: 0;
  transition: all 0.4s ease;
}

.span_title:before {
  border-width: 10px 8px 0 8px;
  border-style: solid;
  border-color: #52b7f8 transparent transparent transparent;
  top: -15px;
  transform: translateY(20px);
}

.span_title:after {
  content: attr(data-tooltip);
  background: #52b7f8;
  width: 300px;
  height: auto;
  font-size: 13px;
  font-weight: 300;
  top: -40px;
  right: 0px;
  padding: 10px;
  border-radius: 5px;
  letter-spacing: 1px;
  transform: translateY(20px);
}

.span_title:hover::before,.span_title:hover::after {
  opacity: 1;
  transform: translateY(-2px);
}
/* Beneficiary Autofill Styles */
.beneficiary-loading {
    font-size: 0.9em;
    margin-left: 10px;
}

/* Add a small delay to the loading indicator to prevent flashing for quick searches */
#name_beneficiary_autofill_loading {
    transition: opacity 0.3s ease;
    opacity: 0;
}

#name_beneficiary_autofill_loading.show {
    opacity: 1;
}

.beneficiary-loading {
    color: #0d6efd;
    margin-left: 10px;
    display: inline-block;
    font-size: 0.9em;
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.beneficiary-loading i {
    margin-right: 5px;
}

/* Success message styling */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 8px 15px;
    border-radius: 4px;
    margin: 10px 0;
    border: 1px solid #c3e6cb;
    font-size: 14px;
    display: inline-block;
    width: 100%;
}

/* Input field styling */
.input-div input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Partner list container styling */
.partner-list-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.partner-list-container .list-group-item {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.partner-list-container .list-group-item:hover {
    background-color: #e9ecef;
    border-color: #6c5eff;
    transform: translateX(5px);
}

.partner-list-container .list-group-item.active {
    background-color: #6c5eff;
    color: white;
    border-color: #6c5eff;
}

.partner-list-container .list-group-item.active h6,
.partner-list-container .list-group-item.active p {
    color: white;
}

.partner-list-container .list-group-item h6 {
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.partner-list-container .list-group-item p {
    margin-bottom: 0;
    font-size: 0.9em;
    color: #6c757d;
}

/* Partner select containers (depositors/beneficiaries) */
.partner-select-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.partner-select-group h4 {
    margin-bottom: 4px;
}

.partner-select-group .select-div-bd,
.partner-select-group .select-div {
    width: 100%;
}

.partner-select-group .select2-container {
    width: 100% !important;
}

/* Select2 Custom Styling for Partner Selection */
.partner-select {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    min-height: 46px;
    border: 1px solid #dcdfe6;
    border-radius: 10px;
    padding: 0 42px 0 14px;
    font-size: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    flex: 1;
    line-height: normal;
    color: #333;
    padding: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 12px;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #6c5eff;
    box-shadow: 0 0 0 0.2rem rgba(108, 94, 255, 0.25);
}

.select2-dropdown {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #6c5eff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(108, 94, 255, 0.25);
}

/* RTL adjustments for Select2 dropdown */
[class*="o_rtl"] .select2-container--default .select2-search--dropdown .select2-search__field {
    text-align: right;
    direction: rtl;
    padding-right: 12px;
    padding-left: 12px;
}

[class*="o_rtl"] .select2-results__options {
    text-align: right;
}

.select2-container--default .select2-results__option {
    padding: 10px 12px;
    font-size: 14px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #6c5eff;
    color: white;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #f0eeff;
    color: #6c5eff;
}

.select2-container--default .select2-results > .select2-results__options {
    max-height: 300px;
}


/* RTL adjustments (Arabic) */
[class*="o_rtl"] .partner-select-group {
    text-align: right;
}

[class*="o_rtl"] .partner-select-group h4 {
    text-align: right;
}

[class*="o_rtl"] .select2-container--default .select2-selection--single {
    text-align: right;
    padding: 0 14px 0 42px;
}

[class*="o_rtl"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-right: 0;
    padding-left: 12px;
}

[class*="o_rtl"] .select2-container--default .select2-selection--single .select2-selection__arrow {
    right: auto;
    left: 10px;
}

[class*="o_rtl"] .select2-results__options {
    text-align: right;
}

