:root {
            --sidebar-width: 250px;
            --primary-color: #0d6efd;
            --link-color: #6c757d;
            --link-hover-bg: #e9ecef;
            --sidebar-border: #dee2e6;
}
    
body {
            background-color: white;
}
    

/* Estils per al landing page modern */
.public-landing {
    position: relative;
    background: linear-gradient(135deg, rgba(13, 109, 253, 0.021) 0%, rgba(0, 81, 147, 0.114) 100%),
        /* Imatge de fons */
       url("../img/landing.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay; /* Això barreja el gradient amb la imatge */
    padding: 5rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}



.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
}

.features {
    position: relative;
    z-index: 1;
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Efectes addicionals */
.btn-primary {
    background: var(--bs-primary);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11, 94, 215, 0.4);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}


/* Botó operació principal */
.principal-btn {
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
            border: none;
            border-radius: 50px;
            padding: 0.8rem 1.5rem;
            font-weight: 600;
            color: white;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            white-space: nowrap;
            min-width: 180px;
            height: 50px;
}

.principal-btn:hover {
            transform: translateY(-3px);
            background: linear-gradient(135deg, #1d4ed8, #1e40af);
            color: white;
}

.principal-btn i {
            margin-right: 0.5rem;    
}



/* Botó operació secundària */
.secundari-btn {
    background: linear-gradient(135deg, #b3d4fc, #75bdf0);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    white-space: nowrap;
    min-width: 180px;
    height: 50px;
}

.secundari-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #a1c8f4, #5faee3);
    color: white;
}

.secundari-btn i {
            margin-right: 0.5rem;    
}

.tercer-btn {
  background: linear-gradient(135deg, #f5f5f5, #dcdcdc);
  
  border: none;
  border-radius: 50%;              /* forma rodona */
  width: 50px;
  height: 50px;
  display: flex;                   /* centra la icona */
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 1.25rem;              /* mida de la icona */
  padding: 0;                      /* evita que desquadri */
  text-decoration: none;
  transition: all 0.3s ease;
}



.tercer-btn:hover,
.tercer-btn:focus {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #c0c0c0, #808080); /* degradat més fosc en hover */
    color: white;
}

.tercer-btn i {
    margin-right: 0.5rem;
}


.tercer-btn.active {
  background: linear-gradient(135deg, #bbbbbb, #999999);
  color: white;
  pointer-events: none;
}



.delete-btn {
  background: linear-gradient(135deg, #f7b7b7, #f41b1b);
  border: none;
  border-radius: 50px;
            padding: 0.8rem 1.5rem;
            font-weight: 600;
            color: white;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            white-space: nowrap;
            min-width: 180px;
            height: 50px;
}



.delete-btn:hover,
.delete-btn:focus {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #f37c7c, #ce3737); /* degradat més fosc en hover */
    color: white;
}

.delete-btn i {
    margin-right: 0.5rem;
}



.sidebar {
            position: fixed;
            top: 0;
            left: 0;
            height: 100vh;
            width: var(--sidebar-width);
            background-color: #ffffff;
            border-right: 1px solid var(--sidebar-border);
            transition: transform 0.3s ease-in-out;
            z-index: 1000;
            overflow-y: auto;
}
    
.sidebar.collapsed {
            transform: translateX(-100%);
}
    
.sidebar .nav-link {
            color: var(--link-color);
            border-radius: 8px;
            margin: 2px 8px;
            padding: 12px 16px;
            transition: all 0.3s ease;
}
    
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
            color: var(--primary-color);
            background-color: var(--link-hover-bg);
            transform: translateX(5px);
}
    
.sidebar .nav-link i {
            margin-right: 10px;
            width: 20px;
}
    
.main-content {
            margin-left: var(--sidebar-width);
            transition: margin-left 0.3s ease-in-out;
            min-height: 100vh;
}
    
.main-content.expanded {
            margin-left: 0;
}
    
.top-navbar {
            background: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            padding: 1rem 0;
            margin-bottom: 2rem;
}
    
.sidebar-brand {
            padding: 1.5rem 1rem;
            border-bottom: 0px solid var(--sidebar-border);
            margin-bottom: 1rem;           
            background-color: white;
}
    
.sidebar-brand h4 {
            color: var(--primary-color);
            margin: 0;
            font-weight: 600;
}
    
.sidebar-brand small {
            color: var(--link-color);
}
    
.user-info {
            padding: 1rem;
            border-top: 1px solid var(--sidebar-border);
            margin-top: auto;
            background-color: white;
}
    
.user-info .user-avatar {
            width: 40px;
            height: 40px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
}

.user-info .username {
            font-weight: 500;
            color: #212529;
}
    
.btn-toggle-sidebar {
            position: fixed;
            top: 20px;
            left: 20px;
            z-index: 1001;
            background: var(--primary-color);
            border: none;
            border-radius: 8px;
            padding: 10px;
            color: white;
            display: none;
}
    
.card {
            border: none;
            box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
            border-radius: 12px;
}
    
.card-header {
            background: white;
            border-bottom: 1px solid #dee2e6;
            font-weight: 600;
            border-radius: 12px 12px 0 0 !important;
}

.candidatura-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.candidatura-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.oferta-card {
        border-radius: 12px;
        transition: all 0.3s ease;
        border: 1px solid rgba(0,0,0,0.08) !important;
        background-color: rgba(0,0,0,0.03) !important;
    }
  
 .oferta-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
    }
   


.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

  .candidatura-card {     

        border-radius: 12px;
        transition: all 0.3s ease;
        border: 1px solid rgba(0,0,0,0.08) !important;
        background-color: rgba(0,0,0,0.03) !important;
    }
    
    .candidatura-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
    }
    
   
    
    
    .pagination .page-link {
        border-radius: 8px;
        margin: 0 2px;
        border: 1px solid #dee2e6;
    }
    
    .pagination .page-item.active .page-link {
        background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
        border-color: #0d6efd;
    }

    .img-fixed {
      height: 200px;
      object-fit: cover;
      width: 100%;
    }
    
    .puntuacio-badge {
        width: 40px;
        height: 40px;
        font-weight: bold;
        font-size: 0.9rem;
    }
    
    .estat-select {
       
        transition: all 0.3s ease;
    }
    
    .estat-select:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }


    .current-file {
    border-radius: 8px;
    }
   
    .form-control:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }
    
    .progress-bar {
        transition: width 0.3s ease;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.5em 0.75em;
    }
    
    .sticky-top {
        z-index: 1020;
    }
    

    /* Estil per al text informatiu del dropdown */
    .dropdown-item-text {
        padding: 0.375rem 1rem;
        font-size: 0.875rem;
        font-style: italic;
    }

    /* Estil per destacar el nombre de candidatures */
    .dropdown-item:has(.bi-people) {
        font-weight: 500;
    }
   
    .alert-info-small {
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 0.75rem 1rem;
    }

    .alert-info-small .alert-icon {
        flex-shrink: 0;
        margin-top: 0.1rem;
        color: #0ea5e9;
    }

    .alert-info-small .alert-content {
        flex-grow: 1;
    }

    .alert-info-small .alert-content p {
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    .alert-info-small .alert-content p:last-child {
        margin-bottom: 0;
    }

    
@media (max-width: 768px) {

     .sticky-top {
            position: relative !important;
        }
            .sidebar {
                transform: translateX(-100%);
            }
    
            .main-content {
                margin-left: 0;
            }
    
            .btn-toggle-sidebar {
                display: block;
            }
    
            .sidebar.show {
                transform: translateX(0);
            }

             .candidatura-card .row > div {
            margin-bottom: 1rem;
        }
        
        .candidatura-card .d-flex.gap-2 {
            justify-content: center !important;
        }
}
    
.welcome-card {
            background: linear-gradient(135deg, #66d0ea 0%, #4b82a2 100%);
            color: white;
            border-radius: 15px;
}
 

.icon-size-3rem {
    font-size: 3rem;
}



.funcio-item {
    background: linear-gradient(135deg, #f5f5f5 0%, #dcdcdc 100%);
    border-left: 4px solid #0d6efd; 
    transition: background 0.3s ease;
}

.funcio-item:hover {
    background: linear-gradient(135deg, #c0c0c0 0%, #a9a9a9 100%);
}
