/* Reset and base styles */

html, body {
    height: 100%;
}

body {
    height: 96%;
    display:flex;
    flex-direction:column;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
}

.navbar {
    display:flex;
    flex-direction:row;
    justify-content:space-between;
}

.navleft{
    min-width:350px;
}

.navright{
    min-width:175px;
}

.logo {
    flex-direction: column;
    align-items: center;
}

.main{
    overflow:auto;
    height:100%;
}

.content, .content-account{
    display:flex;
    flex-direction:row;
    justify-content: space-between;
}

.about {
    margin-left:20%;
    margin-right:20%;
}

footer {
    display:flex;
    justify-content: space-between;
}

.link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

a {
    color: #e0e0e0;
    margin: 0 15px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

a:hover {
    color: #579dfa;
}

.card {
    background-color: #1c1c1c;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
}

.paypal-button-container {
    width: 50%;
    margin-left:25%;
}

button, .btn {
    padding: 10px 20px;
    background-color: #bd2c0f;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    max-height: 35px;
}

button:hover, .btn:hover {
    background-color: #bd2c0f;
}

.remove-tag {
    all: unset;
    color: #ff4c29;
    margin-left:6px;
    cursor:pointer;
    font-weight:bold;
}

.remove-tag:hover {
    all: unset;
    color: #e63e1f;
    margin-left:6px;
    cursor:pointer;
    font-weight:bold;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.film-card {
    text-align: center;
    padding: 15px;
}

.film-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}

.film-card img:hover {
    transform: scale(1.05);
}

.film-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.film-poster img {
    max-width: 300px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
}

.film-body {
    display:flex;
    flex-direction:row;
}

.film-info {
    flex:1;
    width:30%;
}

.film-media{
    flex:3;
    width:70%;
}

.film-actions {
    display:flex;
    flex-direction:row;
}

.film-details {

}

.action-item{
    margin-right:15px;
    margin:5px;
    display:flex;
    width:95%;
    flex-direction:row;
    border-style:solid;
    border-color:dimgrey;
}

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  display: none;
  z-index: 999;
}

.dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    background: white;
    z-index: 1000;
}
.dialog-header {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    font-size: 1.25rem;
    font-weight: bold;
}
.dialog-body {
    padding: 20px;
    font-size: 1rem;
    color: #333;
}
.dialog-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    text-align: right;
}
.dialog-footer .btn {
    margin-left: 10px;
}
.dialog-footer .btn-secondary {
    background-color: #ccc;
    color: #333;
}
.dialog-footer .btn-secondary:hover {
    background-color: #bbb;
}
.dialog-footer .btn-primary {
    background-color: #ff4c29;
    color: #fff;
}
.dialog-footer .btn-primary:hover {
    background-color: #e63e1f;
}

.filter-bar {
    padding: 4px;  
    display: flex;
    flex-direction: row;
}

.filter-content {
    width: 100%;
    padding: 4px;  
    display: flex;
    flex-direction: row;
    margin:2px;
}
.filter-input, .filter-select, .filter-button{
    border: 1px solid #555;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.875rem;
    width: 100%;
    margin: 2px;
}

.filter-button {
    background-color:#0070ff;
}

.filter-select {
    padding-right: 30px;
}

  .dlg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9999;
    font-family: system-ui, sans-serif;
  }

  .dlg-window {
    position: absolute;
    border-radius: 10px;
    background: #f0f0f0;
    border: 1px solid #777;
    min-width: 360px;
    max-width: 520px;
    box-shadow: 0 10px 30px rgba(0,0,0,.45);
    z-index: 9999;
  }

  .dlg-title {
    background: linear-gradient(#e6e6e6, #cfcfcf);
    padding: 8px 12px;
    font-weight: 600;
    cursor: move;
    user-select: none;
    border-bottom: 1px solid #999;
    color: #111;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  .dlg-body {
    display: flex;
    gap: 14px;
    padding: 18px;
    color: #111;
  }

  .dlg-icon {
    font-size: 36px;
    line-height: 1;
    width: 40px;
    text-align: center;
  }

  .dlg-message {
    flex: 1;
  }

  .dlg-footer {
    padding: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid #bbb;
    background: #e9e9e9;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  .dlg-footer button {
    min-width: 80px;
    padding: 4px 10px;
    border: 1px solid #777;
    background: #fafafa;
    color: #111;
    cursor: pointer;
  }

  .dlg-footer button:hover {
    background: #e6f0ff;
  }

  .analytics-container {
    display:flex;
    flex-direction:row;
    justify-content:space-between;
  }
    