/* Basic Reset and Body */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f2f4f8;
    color: #333;
    box-sizing: border-box;
    min-height: 100vh;
}

/* Links */
a {
    text-decoration: none;
    color: #007BFF;
    transition: color 0.3s ease;
}
a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Headings */
h1, h2, h3 {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Business Background Wrapper */
.business-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #e8f1ff, #f9fbff);
  overflow: hidden;
  pointer-events: none;
}

/* Floating Business Shapes */
.float-icon,
.float-circle,
.float-square {
  position: absolute;
  opacity: 0.06;
  animation: floatIcon 14s ease-in-out infinite;
  pointer-events: none;
}

.float-circle {
  border-radius: 50%;
  background-color: #007BFF;
}
.float-square {
  border-radius: 12px;
  background-color: #28a745;
}

.circle1 {
  width: 200px;
  height: 200px;
  top: 15%;
  left: 10%;
}
.circle2 {
  width: 140px;
  height: 140px;
  top: 65%;
  left: 75%;
}
.square1 {
  width: 100px;
  height: 100px;
  top: 40%;
  left: 85%;
}
.square2 {
  width: 130px;
  height: 130px;
  top: 75%;
  left: 20%;
}

@keyframes floatIcon {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(10deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Login Form */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: none;
}
.login-form {
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}
.login-form:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.login-form h2 {
    margin-bottom: 25px;
    font-weight: 700;
    color: #222;
    font-size: 1.8rem;
}
.login-form input {
    box-sizing: border-box; /* FIX: ensures consistent sizing */
    width: 100%;
    padding: 12px 15px;
    margin: 12px 0;
    display: block; /* FIX: ensures it takes full line */
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.login-form input:focus {
    outline: none;
    border-color: #007BFF;
}
.login-form button {
    width: 100%;
    padding: 12px;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}
.login-form button:hover {
    background: #0056b3;
}
.login-logo {
    width: 60px;
    margin-bottom: 20px;
}

/* Form: Add Company */
form:not(.login-form) {
    text-align: center;
    margin-bottom: 25px;
}
form:not(.login-form) input,
form:not(.login-form) button {
    padding: 10px 14px;
    margin: 5px 7px;
    border-radius: 8px;
    border: 1.5px solid #ccc;
    font-size: 1rem;
}
form:not(.login-form) input:focus {
    border-color: #28a745;
}
form:not(.login-form) button {
    background: #28a745;
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
}
form:not(.login-form) button:hover {
    background: #1e7e34;
}

/* Dashboard Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #00336a;
  color: white;
  border-radius: 12px;
  margin: 20px 30px 40px;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}
.dashboard-header h1 {
  font-weight: 700;
  font-size: 1.8rem;
  margin: 0;
}
.dashboard-header .logout-btn {
  background: #dc3545;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.6);
}
.dashboard-header .logout-btn:hover {
  background: #c82333;
}

/* Tiles */
.company-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    padding: 0 30px 40px;
}
.tile {
    background: #fff;
    padding: 25px 20px;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}
.tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.tile img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid #eee;
}
.tile h3 {
    font-size: 1.3rem;
    color: #222;
    margin-bottom: 15px;
}
.tile a {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 30px;
    background: #007BFF;
    color: white;
    font-weight: 600;
    transition: 0.3s ease;
}
.tile a:hover {
    background: #0056b3;
}

/* Table */
table {
    margin: 25px auto;
    width: 85%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.07);
    border-radius: 10px;
    overflow: hidden;
}
table th, table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eaeaea;
    text-align: center;
    font-size: 1rem;
}
table th {
    background-color: #007BFF;
    color: white;
}

/* Document List */
ul {
    list-style: none;
    text-align: center;
    margin: 20px auto;
    width: 85%;
}
ul li {
    margin: 10px 0;
    font-size: 1rem;
}
ul li a {
    color: #007BFF;
    font-weight: 600;
}
ul li a:hover {
    color: #0056b3;
}

/* Responsive */
@media (max-width: 600px) {
    .dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding-bottom: 30px;
    }
    .company-tiles {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        padding: 0 15px 30px;
    }
    table {
        width: 95%;
    }
}
.company-content {
    max-width: 1000px;
    margin: auto;
    padding: 30px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    border-radius: 12px;
}

/* Section Titles */
.company-content h3 {
    color: #00336a;
    margin-top: 30px;
    font-weight: 600;
}

/* Upload Form */
.upload-section form,
.cred-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}
.upload-section input[type="file"],
.cred-form input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1.5px solid #ccc;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.cred-form input:focus {
    border-color: #28a745;
    outline: none;
}
.cred-form select {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1.5px dotted #ccc;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    /* font-size: 10px;      smaller text size */
    color: #555555; 
    
}

.cred-form select:focus {
    border-color: #28a745;
    outline: none;
}
.cred-form button,
.upload-section button {
    background: #007BFF;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    transition: background 0.3s ease;
    cursor: pointer;
}
.cred-form button:hover,
.upload-section button:hover {
    background: #0056b3;
}

/* Document List */
.doc-list {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}
.doc-list li {
    padding: 8px 0;
}
.doc-list a {
    color: #007BFF;
    font-weight: 500;
}
.doc-list a:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Credentials Table */
.cred-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.cred-table th,
.cred-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
}
.cred-table th {
    background: #056bd8;
    color: white;
    font-weight: 700;
}
.cred-table tr:hover {
    background: #f9f9f9;
}
.delete-link {
    color: #dc3545;
    font-weight: 600;
    text-decoration: none;
}
.delete-link:hover {
    color: #a71d2a;
    text-decoration: underline;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .cred-form {
        flex-direction: column;
    }
    .cred-form input, .cred-form button {
        width: 100%;
    }
}

/* Business Background Wrapper */
.business-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

/* Floating Business Icon Style */
.biz-icon {
  position: absolute;
  width: 60px;
  opacity: 0.06;
  animation: floatIcon 14s ease-in-out infinite;
}

/* Floating Animation */
@keyframes floatIcon {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}  
.back-btn {
    background-color: #0088ff; /* gray background */
    color: #fff;               /* white text */
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-right: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background-color: #bababa;
}
